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

Force all nodes to be expanded and non-collapsible

2 Answers 36 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 08 May 2009, 10:46 PM
My client wants me to simulate a table of contents.  All nodes must be open initially without the ability to collapse them.  I need to hide the lines and "plus".  Each node will have context menus associated and must be clicable

I can accomplish most of this, but it seems dirty to me.

Is there a recommended way to make the treeview "fully expanded and non collapsible".  Hopefully I just missed a setting

Thanks
Tommy


2 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 11 May 2009, 11:19 AM
Hi Tommy,

On page load you can call the ExpandAllNodes() method.
To prevent collapsing - please subscribe to the OnClientNodeCollapsing event and cancel it.

Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Tommy
Top achievements
Rank 1
answered on 11 May 2009, 04:08 PM
I wasnt doing the "OnClientNodeCollapsing" cancel piece.    That resolved my problem

Thanks for your quick response!
Tags
TreeView
Asked by
Tommy
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Tommy
Top achievements
Rank 1
Share this question
or