Hi,I'm working with UltraTree nodes in an Ultratree.In my tree, when I disable a node by setting its Enable property to false, this node appears disabled, but all the child nodes also appear disabled althought their Enable property is true.Is there a property on UltraTree that display all child nodes disabled when the parent is disabled ?
In my example are only DOM_1 and MAE with property Enable = false
Best regards
Hello Pokorny,
Thank you for posting on our forums. Have a good day.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
Hi,
I actually tried the BeforeSelect event to remove the checkmark on the nodes that could not be checked without using the disable property, but you see the check mark appear and then disappear.It is not very good because it gives a blinking effect and I will try to finally manage it otherwise.I will submit my ideas for changes as soon as I complete my current project.Thank you for your help.
After investigating for a way to enable/disable child nodes without any dependency on parent node state and doing some research, this has been determined to be a product idea. You can suggest new product ideas for future versions by emailing ideas@infragistics.com.
Submitting your idea will send it directly to our product management team so that it can be imported into our new ideas community once live: http://ideas.infragistics.com.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. You can also link back to this thread for additional details.
Thank you in advance to submitting your product idea.
Alternatively, this can be achieved by writing some custom code in BeforeSelect event of the Tree. For example, when a user un-selects a parent node then in BeforeSelect event you would do the below things:
1. The specific disabling action can be cancelled.2. Change Appearance of parent node so it looks disabled.3. Perform the required underlying wire up so that the parent node appears and behaves as disabled without disabling the child nodes.
However, this is a complex thing to achieve as implementing this approach requires writing custom code to apply disabling/ enabling behavior to parent node without affecting the child nodes. I recommend submitting this issue as a product idea to our developer support team.
Please let me know if you have any questions.
Hi Sahaja,
What I want to do is finally very simple: I want to make disabled only the nodes I want, independently to be father or son.Other nodes must all be enabled and manually checkable.
Christian
Yes, the disabled mode will still be effective. Please clarify your requirement. Why do you want to customize the state of child nodes irrespective of the parent node state? When parent node is selected all its children will be selected and vice versa.
If you want to select only certain child nodes then you can do so by not selecting the parent node and only selecting the required child nodes. Alternatively, If you want enable only few child nodes when parent node is selected then I believe you can do that by looping through the child nodes collection in AfterSelect event and enabling the required child nodes.