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
120
How to make the child checkboxs checked when loading parent node children dynamically
posted

Hi all,

below is my scenario

I am loading all the tree nodes children on demand(on nodeExpanding event). My requirement is, if user selects the parent node checkbox first & expands the node later all the child node checkboxs should be selected automatically without triggering nodeCheckstateChanging or nodeCheckstateChanged event(in these events we have written some server action) .

I tried option in below url. this invokes nodeCheckstateChanging or nodeCheckstateChanged event .

is there any way to disable & enable events or any other way to achieve this ?

http://es.infragistics.com/community/forums/t/91434.aspx

Parents
  • 2671
    Offline posted

    Hello Raghu,

     

    Thank you for posting in our community.

    I can suggest using the ‘triState’ checkboxMode as it seems to match your requirements.  You won’t need to do anything else to have newly loaded children match the parent selection state as it will “cascade up and down in this mode”.
    //Initialize

    $(".selector").igTree({    

       checkboxMode : "triState"

      //…

    });

    Also no additional events are triggered by this functionality. I’ve made a quick sample demonstrating that: http://jsfiddle.net/damyanpetev/d3q1qzvo/

    Let me know if this resolves your issue and don’t hesitate to ask if you need any further assistance.

     

    Regards,

    Damyan Petev

    Software Developer

    Infragistics, Inc.

Reply Children