When we bind TreeView to flat data using _kendoTreeViewFlatDataBinding_ it works well for root level nodes, but changes to the nested nodes do not appear on UI until we collapse/expand their parent nodes (assume that _kendoTreeViewExpandable_ directive is used). If _kendoTreeViewExpandable_ is removed the situation becomes even worse because in that case there is no way to see new items at all.
When nodes are changed all expanded tree nodes should be refreshed on UI.
Here is a plank with an example: link
any update on this? We're experiencing the same issue. TreeView does not refresh child nodes, when a new array with "new child items" is bound to the nodes property.
Indeed, the component won't update the list, because the group doesn't trigger its change detection accordingly. We will further investigate the case and will try to find a feasible solution.
For the time being, you can collapse-expand the group to force its re-render:
https://plnkr.co/edit/svC1IkLR470xEu9lPL91?p=preview
Any update on this? Your collapse-expand workaround animates the treeview, which is a bit annoying...
I attempted to expand and collapse the group in two successive setTimeout calls, but even then the tree view is animated.
The issue in question has been fixed in the latest develop version of the kendo-angular-treeview package.
Fixed in 2.3.0
Most helpful comment
Any update on this? Your collapse-expand workaround animates the treeview, which is a bit annoying...
I attempted to expand and collapse the group in two successive
setTimeoutcalls, but even then the tree view is animated.