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

RadTreeView NodeExpand

0 Answers 67 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
sudesh
Top achievements
Rank 1
sudesh asked on 30 Apr 2009, 04:45 AM
Hello,

I have used RadTreeView control in a ASP.net page and below code will add nodes  to the tree considering whether there should be child nodes.
              
               if (childNodes.Count() > 0)
                    {
                        node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
                    }                                   
 
                    treeViewControl.Nodes[0].Nodes.Add(node);    

The nodeExpand method will load the child nodes for a particular node when it is clicked.

When a node is expanded a serverSide postbak happens and so that the member variables in the class is re-initialized. Is there a way that i can avoid this?
I need to keep a variable value through out the node expandings till a page closes.

Thanks,
Sudesh

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
sudesh
Top achievements
Rank 1
Share this question
or