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

[Solved] Disable entire tree view control?

1 Answer 119 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 13 Dec 2011, 09:58 PM
Can the TreeView control not be disabled completely?  I know that individual nodes can be enabled/disabled, but I have a requirement that the entire control be disabled if a checkbox is checked.  And from what I can see, there is no server-side or client-side support enable/disable functionality on the control itself.

This isn't the first control I've run across that is lacking such a basic feature.  The DatePicker control is missing the same functionality, and I had to customize the control myself just to get it.  Which, while is nice to be able to do, I shouldn't have to for such basic functionality.

Unless I'm missing something, and then if so, pardon me whilst I remove my foot from my mouth, but it's rather frustrating to find functionality one would assume to be present missing.

1 Answer, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 13 Dec 2011, 10:15 PM
Well, time to eat a small amount of crow.  After digging through the documentation, there was an example showing how to disable all nodes at once, as well as enable them.  So I have figure it out.

However, I still maintain that from a design and development perspective, it seems like a long way around what should (in my opinion only) a simple method call, such as other controls in the MVC package have.
Tags
TreeView
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Share this question
or