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

Show/Hide Expand-Collapse button(+/-) in treeview

2 Answers 624 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Remya
Top achievements
Rank 1
Remya asked on 30 Mar 2012, 05:57 AM
Hi,

I am binding the parent nodes to a treeview initially and intends to bind the children of each node on LoadOnDemand.I am checking whether each parent node is having child nodes on initial bind to show or hide the expand-collapse button.I want to hide the expand-collapse button for those nodes who doesn't have any child.

Help me.
Thnx in advance.

2 Answers, 1 is accepted

Sort by
0
Remya
Top achievements
Rank 1
answered on 30 Mar 2012, 11:16 AM
Hi,

I solved this issue.
0
Julian Benkov
Telerik team
answered on 03 Apr 2012, 05:46 PM
Hello Remya,

I am glad to hear that you have solved your issue. 

Generally speaking, you can turn off the LazyMode property to support this scenario:

treeView.LazyMode = false;

Do not hesitate to contact us if you have further questions or issues. 

Greetings,
Julian Benkov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Treeview
Asked by
Remya
Top achievements
Rank 1
Answers by
Remya
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or