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
3790
help with toggleCheckstate
posted

I'm trying to check a box programmatically.

tried

         nodes = $( this.treeIDMap.igTree( "findNodesByText", txt ) );
         this.treeIDMap.igTree( "toggleCheckstate", nodes[0] )

and

         nodes = $( this.treeIDMap.igTree( "findNodesByText", txt ) );
         this.treeIDMap.igTree( "toggleCheckstate", nodes )

but something is wrong with my node.

  • 10685
    Offline posted

    Hello,

    I am glad you found a solution.

    Please let me know if you have additional questions regarding this topic!

  • 3790
    Verified Answer
    posted

    ok this worked.

            nodes = $( this.treeIDMap.igTree( "findNodesByText", txt ) );
             this.treeIDMap.igTree( "toggleCheckstate", nodes[0].element )