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
250
Checkbox question
posted

Hi,

Is it possible for me to set the checkboxes to total manual control. I need them to function differently than the bi-state and tri-state? Those are the only two options. Is this feature coming in a future release?

Parents
  • 33839
    Verified Answer
    posted

    Hi,

    The feature that you mention could possibly come in a future release.  It was cut from 9.1 due to lack of time.  If you would like this added sooner rather than later, submit a feature request and let our PM know so that the control will better suit you.

    Fortunately though, it should be possible to accomplish what you desire.  What you will need to do is handle the NodeChecking client event.  You will then cancel that event and set the checked states of whatever nodes you want.  The following handler will allow the tree to simply have a checkbox switch between checked and unchecked when clicked without autochecking any other nodes.

    function nodeChecking(tree, args) {
                if (args.getNode().get_checkState() == 0)
                    args.getNode().set_checkState(1);
                else
                    args.getNode().set_checkState(0);
                args.set_cancel(true); // cancel the event and thus the automatic checking
            }

    Hope this all helps.

    regards,
    Dave Young

Reply Children
No Data