I am using igTreeGrid with AngularJs. In my scenario, data is being updated after X time interval. Issue is, on each data update, expand/collapse state doesn't preserve. It's reset to initial state. Also scroll position is also back to top. Here is the fiddle link: http://jsfiddle.net/tvsa5hwu/2/
Is there any way around to preserve tree grid state on data refresh?
Hi Deyan,
With Angular, shouldn't it be possible to re-render the changed rows only, when the source updates, without having to rebind again? Since Angular supports binding, any changes to the source should be re-rendered on its own.
Regards
Hello,
Data binding requires rendering all rows again and that's why the scroll position is not retained.
To achieve this the behavior you want I'll suggest enabling Updating and use it's API to add new rows.
I modified your fiddle here