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

RadTreeView.ExpandAllNodes() does't work

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Catalina
Top achievements
Rank 1
Catalina asked on 22 Jun 2012, 10:14 AM
        public ICollection<Employe> Data
        {
            set
            {
                this.RadTreeView.DataSource = value;
                this.RadTreeView.DataBind();
                this.RadTreeView.ExpandAllNodes();
}
}

Tree view nodes are not expanded. Is there another way to do this?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 25 Jun 2012, 11:45 AM
Hi Catalina,

 
You can set the Expanded="True" property in the DataBindings of RadTreeview as it is done in the Programmatic Data Binding:

<DataBindings>
                   <telerik:RadTreeNodeBinding Expanded="True" />
               </DataBindings>

Hope this will be helpful.

Regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Catalina
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or