Always reload child nodes on expand

4 posts, 0 answers
  1. Steven
    Steven avatar
    29 posts
    Member since:
    Jul 2012

    Posted 13 Sep 2012 Link to this post

    Is there a way to force the TreeView to reload all child nodes (AJAX) when a parent node is expanded?

    Right now the children are only loaded once when the parent is first expanded.  I would like to have the treeview completely refresh all children from an AJAX call each time the parent node is expanded.

    Thank you.

    === EDIT ===

    It looks like I can use the _view array of the tree view's dataSource property and call the load() method of the view, but how do I get the view's index?
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 14 Sep 2012 Link to this post

    Hello Steven,

    We've added the answer to this question to the treeview documentation.

    Regards,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Steven
    Steven avatar
    29 posts
    Member since:
    Jul 2012

    Posted 14 Sep 2012 Link to this post

    Should this work with an AJAX method as well?  It does not appear to call the AJAX method when I set loaded(false) and expand the node.
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2527 posts

    Posted 17 Sep 2012 Link to this post

    Hello Steven,

    Yes, this code works with the service pack release from last week. Please update and see how it goes. If this doesn't help, please open a support ticket and post more details about your scenario.

    Regards,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top