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?
Perfect. Thank you very much Deyan.
Hello Shafaq,
At this point igTreeGrid directives for AngularJS does not support two way data binding, but stay tuned so we may add it at future releases.
We have it for Angular2 though you might want to try them too.
Hi Deyan,
Yes, you are right. I have explored the angular directive code and the two way binding is supported for igGrid only.
Can you please confirm me which is the updated version where its resolved. I am using version 16.1.20161.2052.
Thank you.
Actually IgGrid supports the two way data binding, but the IgTreeGrid does not, at this point.
So if you can use the IgGrid, changes will be detected, but for the IgTreeGrid you need to use the Updating API.
@Deyan: Thank you for providing a workaround. For this, I have to manually identify the changes and update accordingly (e.g. add/delete/update).
I am assuming that IG grid doesn't support this feature which I have discussed so I am resolving it through workaround suggested by Deyan. But still I am looking for more better solution.
Thanks.