Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Enabling Only A Tier
posted

Once a node has been selected in a tree, I need to be able to disable all the nodes in tree that are on tiers above it and all those on tiers below it. I have tried using the enable property on the nodes, but when I do that it results in the tier I want enabled beind disabled because it parents are disabled. Is there another property I should use to keep the node from becoming checked, without resulting in the children always being selectable?

 

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    You can't enable a node if any of its ancestor nodes are disabled. If you want to prevent checking, you can handle the BeforeCheck event and cancel it.

Children
No Data