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
600
Set the parents AfterCheck
posted

Hi,

I like to make and treeview where the user checks the checkbox from and random node and all the child  and parent nodes must be checked or unchecked, relative from the random node.

node1 (check)

node1.1

Node 1.1.1

node 1.2 (check)

node 1.2.1

node 1.2.2 (check)

node 1.2.2.1 (if this one is checked)

node 1.2.2.1.1 (check)

node 1.2.2.1.2 (check)

node 1.2.2.1.3 (check)

node 1.2.2.1.3.1 (check)

....  (check)

What is the best way to do this?

Thanks

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    I'm not following what you mean by "random node", but the following KB article demonstrates how to automatically adjust the check state of a parent node when one of its child nodes is checked or unchecked, and how to adjust the check state of all child nodes when the parent's check state changes.

Children
No Data