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

TreeView State

1 Answer 98 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Avi
Top achievements
Rank 1
Avi asked on 09 Jun 2009, 12:18 PM
When the Telerik treeview is used and the node's ExpandMode is set to ServerSide, selecting a node causes postback to occur. The existing tree has a lot of nodes. This causes a delay when trying to select other nodes. We avoid the postback that occurs after node selection by using the OnClientNodeChecking and set_cancel(true) methods. Our problem is that when going to the server, the tree is loosing its state. In cases where expanding a node also causes postpack, we would like to know if there is a way to save the state of the treeview nodes before the postback occurs so that we can be aware of the state of the nodes on the server. (We want to use this implementation).

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Jun 2009, 09:57 AM
Hi Avi,

Go through the following which explains how to keep the expanded state of r.a.d.treeview between postbacks.
Save the expanded state of the TreeNodes when the treeview is being bound upon each postback

Shinu
Tags
TreeView
Asked by
Avi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or