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.