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
30
How to rename the added node in ignitetree?
posted

Added new node using the below code and not able to find a method to rename the user. Is there any way to rename added new node in the ignite tree ?

$("#firstTree").igTree("addNode", {Text: "New Node"}, selectedNode);

Parents
No Data
Reply
  • 1320
    Verified Answer
    Offline posted

    Hello Kavitha,

    After investigating this further, I determined that the text of a node could be modified by using the “applyChangesToNode” method. Additionally the added node could be accessed by “findNodesByText”:

     var node = $("#tree").igTree("findNodesByText", "New Node")[0].element;

     $("#tree").igTree("applyChangesToNode", node, {Text: "New York"});

    Below I am attaching a sample, demonstrating the described behavior. Please test it on your side and let me know if you need any further information regarding this matter.

    Regards,

    Monika Kirkova,

    Infragistics

    igTreeRenameNode.zip

Children