This is a migrated thread and some comments may be shown as answers.
detect when loadOnDemand finishes loading the items
1 Answer 33 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rolf Toorn, van der
Top achievements
Rank 1
Rolf Toorn, van der asked on 19 Oct 2010, 11:32 AM
Hi

Is there a way to detect / receives notification when a TreeItem node has finished loading its subitems in a loadOnDemand scenario?
I have tried the onExpand event but it only fires after expanding and collapsing (once) the node by clicking.

The functionality I am looking for is the following:
1. Treeview on the left
2. LoadOnDemand via AJAX multiple levels of different type objects (master detail)
3. On click of a tree node the detail is shown on the right (within iframe)
4. Edit the detail
5. Refresh the tree to reflect the changes 
6. Expand the nodes (effectively reloading the nodes)
7. Select the node that was edited in the detail so the detail is show again

So I will end up with the tree refreshed and the correct node is selected.
Everything works except expanding the tree back to it's original depth. I have a path array to find the nodes.

Any info would be great thanks
Rolf

1 Answer, 1 is accepted

Sort by
0
Tx3
Top achievements
Rank 1
answered on 29 Oct 2010, 11:23 AM

I am not sure that is this related, but there seems to be bug with onExpand event + LoadOnDemand.

http://www.telerik.com/community/forums/aspnet-mvc/treeview/load-on-demand-selected-expanded.aspx#1396363

Tags
TreeView
Asked by
Rolf Toorn, van der
Top achievements
Rank 1
Answers by
Tx3
Top achievements
Rank 1
Share this question
or