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

Disable a node but allow Expand

4 Answers 145 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Steve Schwenker
Top achievements
Rank 1
Steve Schwenker asked on 16 Mar 2010, 02:37 PM
Hey,

I need to be able to disable a parent node but still allow the expand functionality on that node.  Can anyone explain how I can do that.  Right now the expand doesn't work when I disable the node.

Thank you,


Steve.

4 Answers, 1 is accepted

Sort by
0
Thomas Salt
Top achievements
Rank 1
answered on 16 Mar 2010, 02:53 PM
When you disable it you could then add an on node clicked event handler on the click side to expand and collapse the node.  Check out this page for more information.

http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/clientevents/defaultcs.aspx
0
Steve Schwenker
Top achievements
Rank 1
answered on 16 Mar 2010, 02:59 PM
That's a great idea accept that the +/- still doesn't work and it's not very intuitive to the user.  I don't want to make our system less user friendly just because of limitations in the controls and I would prefer to not custom code it because that just make it more difficult to upgrade.
0
Thomas Salt
Top achievements
Rank 1
answered on 16 Mar 2010, 05:50 PM
Perhaps just changing the css class to make it look disabled?  Another way would be to put two treeviews on the page, one on top of the other.  It's probably not the best idea, but it would work.
0
Veronica
Telerik team
answered on 18 Mar 2010, 02:15 PM
Hello Thomas Salt,

Here you can read how to expand a disabled node.

Hope this helps.

Regards,
Veronica Milcheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Steve Schwenker
Top achievements
Rank 1
Answers by
Thomas Salt
Top achievements
Rank 1
Steve Schwenker
Top achievements
Rank 1
Veronica
Telerik team
Share this question
or