Relaoding Data in GRID!

Hello Folks,

I am evaluating DHTMLX 6.5.

I have Used DHTMLX 3.5 back in 2012-2015, Now i see that few methods are not available in the latest version.

For Example “clearAndLoad” etc.

Please Guide me , how can i use such features in latest version any alternative for above functions…

Thanks

Welcome back!

The grid no longer manages its data directly. Instead, it has a DataCollection object. Most DataCollection objects have the same functions in common to simplify working with them, although some components extend extra functions onto their DataCollection objects for component-specific behaviors. To duplicate what the clearAndLoad() function did for the grid back in 3.5, you’d use two standard functions from the DataCollection object API.

grid.data.removeAll();
grid.data.load();
1 Like

Thank you, Yes it worked for me!