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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Data refresh bug

Thread ID:

Created:

Updated:

Platform:

Replies:

119997 Aug 21,2015 10:23 AM UTC Aug 24,2015 12:28 PM UTC JavaScript 1
loading
Tags: ejTreeGrid
Niko Autio
Asked On August 21, 2015 10:23 AM UTC

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

Mahalakshmi Karthikeyan [Syncfusion]
Replied On 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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;