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

Data refresh bug

Only way to refresh data of TreeGrid I have found is setting dataSource again with setModel. Its fine but version crash on same scenarios ( didn't crash but didn't refreshed grid correctly eather).

Attachment: data_refresh_1953b56d.zip

1 Reply

MK Mahalakshmi Karthikeyan Syncfusion Team August 24, 2015 12:28 PM UTC

Hi Niko,

Sorry about the inconvenience caused.

For your kind information, we analyzed the sample provided by you and came to know that the reported scenario is not based on the Essential studio versions ( or but the data source you are using in the each button click ‘topics’ shares the same object reference with the TreeGrid datasource object, so while passing the array object ‘topics’ to the TreeGrid datasource for the second time , the array ‘topics’ is no more a self-reference datasource object , and so to avoid the duplicate reference from the internal data source, we have to extend our data source each time. Please refer the below code snippet for details.

$("#buttoni").on("click", function () {


      var tempModel = $.extend(true, [], topics);

      ejTreeGrid.setModel({ dataSource: tempModel }, true);


The above work around will work in both the versions ( or

We have also modified the sample and you find the sample under the following location.

Sample: http://jsplayground.syncfusion.com/Sync_3h1yzbn3

Please let us know if you need further assistance on this.


Mahalakshmi K.

Live Chat Icon For mobile
Up arrow icon