How force reloading of treeview

2 posts, 0 answers
  1. Francesco
    Francesco avatar
    1 posts
    Member since:
    May 2013

    Posted 04 Jun 2013 Link to this post

    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
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 06 Jun 2013 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top