I want to make my tree disabled but still scrollable
I want the same thing with the TextEditor. Want to make it disabled but the user can still select the text, I thought the ReadOnly property was for that purpose, but it acts like the Enable property .....
You can set the Enabled property of every node in the tree to false, which would disable the nodes while still allowing the scrollbars to be used. This will disable editing and text selection, so I am wondering, in light of the second part of your question, if what you really want is to simply disallow editing the node text. If this is the case, assign an UltraTextEditor to the UltraTree.Override.EditorControl property, and set the ReadOnly property of that UltraTextEditor to true; this will cause the nodes to pick up that setting.
I have a Checkbox Tree, I want the checkbox to not be able to change it's check state in readonly mode.The only way I found was to subscribe to the beforecheck and cancel the check ........ I don't know about going through all nodes and disabling it .... I could potentially have tons of nodes ......
As for the TextEditor, it has nothing to do with the tree, it was just another question. I changed the readonly property to true, and the text in the texteditor is not selectable ..... I thought it would be but it acts exactly like the enable property ......
GoDaddy said:I have a Checkbox Tree, I want the checkbox to not be able to change it's check state in readonly mode.The only way I found was to subscribe to the beforecheck and cancel the check ........ I don't know about going through all nodes and disabling it .... I could potentially have tons of nodes ......
Handling the event is probably better in that case.
GoDaddy said:As for the TextEditor, it has nothing to do with the tree, it was just another question. I changed the readonly property to true, and the text in the texteditor is not selectable ..... I thought it would be but it acts exactly like the enable property ......
I just tested this out and it works fine for me. I am able to select text but not edit. Are you sure you are not setting the Enabled property to false somewhere im your code? Or disabling the container that the TextEditor is in?
GoDaddy said:The only problem I have with the beforecheck, when trying to check, you see the check appearing then disappearing, any workaround that ?
If I remember correctly, that was a bug that has since been addressed. If you get the latest hotfix, you might see that the issue has been resolved.
The only problem I have with the beforecheck, when trying to check, you see the check appearing then disappearing, any workaround that ?
As fro the TextEditor, you are right, I am playing with the Enable property Thanks!