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

Always reload child nodes on expand

3 Answers 282 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 13 Sep 2012, 04:34 PM
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?

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 14 Sep 2012, 11:16 AM
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!
0
Steven
Top achievements
Rank 1
answered on 14 Sep 2012, 04:14 PM
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.
0
Alex Gyoshev
Telerik team
answered on 17 Sep 2012, 08:55 AM
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!
Tags
TreeView
Asked by
Steven
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Steven
Top achievements
Rank 1
Share this question
or