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
1530
igTree - Remove all child nodes for a given node/ node path
posted

Hi,

I need to remove all child nodes for the selected node. (or from a provided node path). The methods removeAt and removeNodesByValue do not serve this need.

We are using 20132.2364 version of infragistics controls.

Thanks,

Kiran

Parents
  • 25665
    Offline posted

    Hello Kiran,

    Thank you for contacting Infragistics!

    I have done some looking into this matter and have the following information. There isn’t a method to remove all the children of a node. What you can do is use the children method which will give you all the direct children of the node you pass in. You can use what is returned and loop through it to remove all the nodes:

    http://help.infragistics.com/jQuery/2014.2/ui.igtree#methods:children

    Note that removeAt will remove all the children of the node specified so you will not have to loop to find any nodes the child nodes might have.

    Please let me know if you have any further questions concerning this matter.

Reply Children
No Data