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
60
Disabling node check box alone
posted

Hello,

         we are using Infragistics 2007 (version: 7.1.20071.40) and  .NetFramework 2.0 in our application.

We have a requirement of having "disabling checkbox of a node alone" in the Ultra Web tree.

(The node should shown as disabled but it should be expanded).

Hope you got my requirement.Please let us know the properties we have to use so that

we can fulfill our requirement.

 Thanks in advance

 

 

 

 

Parents
  • 7694
    posted

    Hello,

    You can use the property  CheckBox="True" of   ignav:Node tag  to set check  box. Also  you can set property Expanded=true to show  expanded  node. For handle the node checking event you can use the client side events of the tree   <ClientSideEvents NodeChecked="IsChecked" /> and use the JS code.

    <script type="text/javascript">

            function IsChecked(treeId, nodeId, check) {

                var tree = igtree_getTreeById(treeId);
                var node = igtree_getNodeById(nodeId);
               
                node.setEnabled(false);  //Disable the node
                node.setExpanded(true); // Expand programmatically  node on client side
               // debugger;
            }
        </script>

    Hope this helps.

Reply Children
No Data