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

Preserving the State of the RadTreeView in a User Control

1 Answer 30 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 27 Aug 2010, 01:54 AM
I'm constructing a User Control called "Hierarchy" inside of which is just one control, a RadTreeView.  I load it dynamically and then populate it forthwith.  All of that works fine.

With this treeview on the bottom-most nodes have any meaning with a Click event.

What's not working is that if the user clicks a non-bottom node (ie. a branch) then sometimes the treeview remains in the state that it is (good) but other times unexpected things happen with some/all of the branches closing.  I'm not sure why this phenomenon is occurring and how I can correct it.  Any advice would be much appreciated!

Robert

P.S. An alternative solution would be for me to simply disable the server-side click events of all the branch nodes and only have the click events enabled for the bottom-most nodes.  But I don't know if this is even possible or how to do it.

1 Answer, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 27 Aug 2010, 02:17 AM
Resolved via PostBack = false   for each non bottom-level node, though I'm still most curious to know why the TreeView doesn't maintain its state when inside of a user control.
Tags
TreeView
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Share this question
or