TreeView State

2 posts, 0 answers
  1. Avi
    Avi avatar
    6 posts
    Member since:
    Feb 2009

    Posted 09 Jun 2009 Link to this post

    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).
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Jun 2009 Link to this post

    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
Back to Top