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

Client-side treeview - How do I make it fully expand on display

2 Answers 23 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 26 Aug 2010, 02:54 AM
I have a tree view that is controled client-side.  I want it to be displayed fully expanded when it is initially displayed.  How do I do this?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Aug 2010, 07:12 AM
Hello,


Try attaching 'OnDataBound' event to treeview and use the 'ExpandAllNodes()' method to expand all the nodes.

void RadTreeView1_DataBound(object sender, EventArgs e) 
    (sender as RadTreeView).ExpandAllNodes(); 
}



-Shinu.
0
Michael
Top achievements
Rank 1
answered on 26 Aug 2010, 04:15 PM
Shinu;
Thank You very much.  Just what I wanted!
Tags
TreeView
Asked by
Michael
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Share this question
or