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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Data refresh bug

Thread ID:





119997 Aug 21,2015 10:23 AM UTC Aug 24,2015 12:28 PM UTC JavaScript 1
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 crash on same scenarios ( 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 ( 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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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