This is a migrated thread and some comments may be shown as answers.

How force reloading of treeview

1 Answer 105 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Francesco
Top achievements
Rank 1
Francesco asked on 04 Jun 2013, 03:23 PM
Hello,
I'm testing your library Kendo UI for my application in ASP.NET MVC4.
I placed inside a view a kendo.treeview dynamically loaded as shown in your examples.
Now I have the need, following an update of the data on the database (added a node), to force the loading of the treeview with new data without reloading the view.
There is a client function to do this?
If you could send me an example?


thanks

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 06 Jun 2013, 07:45 AM
Hello Francesco,

The children of a node can be reloaded by setting the node loaded flag to false and calling the load method afterwards. An example on how to reload subnodes on every expand of the node can be seen in the getting started help topic (in that case, the load method is called internally, so only the flag is sufficient).

Hope that helps,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Francesco
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or