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 13.2.0.29 crash on same scenarios (13.1.0.30 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 (13.2.0.29 or 13.1.0.30) 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 () {

      topics.pop();

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

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

});

The above work around will work in both the versions (13.2.0.29 or 13.1.0.30)

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.

Regards,

Mahalakshmi K.


Loader.
Live Chat Icon For mobile
Up arrow icon