We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Set dataSource

I have a grid like this:


and when I set it's datasource from ajax like this:
$.ajax({
            cache: false,
            url: src,
            data: { "odDatuma": odDatuma, "doDatuma": doDatuma, "SetID": setID },
            type: "get",
        }).done(function (data) {
            obj.dataSource(data);
        }).fail(function(xhr, status, error) {
            var err = eval("(" + xhr.responseText + ")");
            alert(err.Message);
        });

I get filter icon on first two unbound columns like this:


Any ideas how to avoid this?
Thanks!


3 Replies

PK Prasanna Kumar Viswanathan Syncfusion Team August 29, 2017 01:08 PM UTC

Hi Bernard, 

Thanks for contacting Syncfusion support. 

We created a sample in Grid with two unbound columns(columnTemplate, commandColumn) and when we set dataSource through ajaxPost we did not get the filter icons in the unbound columns. So, we unable to reproduce the mentioned issue in our sample.  

Find the screenshots: 

Before set dataSource through ajaxPost. 

 

After set dataSource:  

 

To find out the root cause, we need the following details. 

1. Code example of a Grid.  

2. Have you used columnTemplate feature to bind the unbound column in Grid?  

3. Essential Studio Version details.  

4. If possible, replicate the issue in the attached sample.  


Regards, 
Prasanna Kumar N.S.V 
 



BJ Bernard Jurlina August 30, 2017 07:43 PM UTC

Hi Kumar,

and thanks for the tip.
I was using Format option for the unbound columns, and when I changed that to columnTemplate, then it works like a charm.

Regards,
Bernard.




PK Prasanna Kumar Viswanathan Syncfusion Team August 31, 2017 10:46 AM UTC

Hi Bernard, 

We are happy to hear that the provided solution has been working fine at your end. 

Please let us know if you need any further assistance. 

Regards, 
Prasanna Kumar N.S.V 


Loader.
Up arrow icon