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

How to hide Collapse icon from a particular node in RadTreeView

2 Answers 180 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gaurav
Top achievements
Rank 1
Gaurav asked on 04 Mar 2011, 09:34 AM
Hi,

I have a requirement where Root Category Node should always be in Expanded mode in RadTreeView control.
I have written the code to show it in expanded mode when RadTreeView is loaded first time but to give it a better meaning I also need to remove the Collapse Icon from the Root Node which is always present there.

I tried updating Node element from code behind but could not find any property like "Collapsable" which I can set to false for this particular node.

Please let me know if there is any attribute or customized code exists for this.

Thanks in advance
Gaurav Jain

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Mar 2011, 10:11 AM
Hello Gaurav,

The forum shows how to hide the expand/collapse image of the root node of tree.
Drop Expand/Collapse Image From Root Node

Thanks,
Shinu.
0
Gaurav
Top achievements
Rank 1
answered on 04 Mar 2011, 10:31 AM
Thanks :)

It worked for me.
Tags
TreeView
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Gaurav
Top achievements
Rank 1
Share this question
or