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);
how to retrieve the parentNode data after dragging the file?
Hello Kavitha,
The updated object could be accessed by using the method “findNodesByText” and passing the new value as argument:
var updatedNode = $("#tree").igTree("findNodesByText", "New York");
The tree could be accessed the following way:
var updatedTree = $("#tree").igTree();
Additionally, by setting new text to a node, the data is not changed, only the text. In order to modify the data, what I could suggest is adding the following line after the “applyChangesToNode” method:
$("#tree").igTree("findNodesByText", "New York")[0].data.Text = "New York";
More information regarding the igTree methods could be found in this topic.
Please let me know if you need any further information regarding this matter.
Regards,
Monika Kirkova,
Infragistics
Hi Monika,
I am trying to save the destination tree into JSON after dragging the files from source to destination. Chrome dev tools I can see data-path version 0.1 ,0.2 like that I was not sure what exactly that. Is there any method available to get the updated object because we need to feed the destination JSON file into another system?
Take your time in adding the method to your project and let me know if you need any further assistance.
Thank you I will try to add the method