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

Expand nodes of a tree view by default

1 Answer 32 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Aneesh
Top achievements
Rank 1
Aneesh asked on 29 May 2012, 05:23 AM
I need to expand nodes of a tree view by default. Please help me.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 29 May 2012, 05:41 AM
Hi Aneesh,

Try the following code.

protected void Page_Load(object sender, EventArgs e)
    {
        RadTreeViewTrial.ExpandAllNodes();
    }

Hope this helps.

Thanks,
Princy.
Tags
TreeView
Asked by
Aneesh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or