[zTree] Getting Id and Value of Selected Edit Node(Ztree)

[zTree] Getting Id and Value of Selected Edit Node(Ztree)

  
Forge Component
(8)
Published on 11 Nov (4 weeks ago) by Eduardo Luís
8 votes
Published on 11 Nov (4 weeks ago) by Eduardo Luís

HI Team,

I am using a ztree component to populate data, so i am binding my Record-list from Database to Ztree and its working fine.

But, while using EditNode, I need to update(name) it to Database, but i am unable to update the value to database.

I tried to fetch the "id" and "updated name" of selected node, but was unable to find it, so that i can update the same value to Database.

Kindly help on this.

Thanks & Regards,

Swaroop Mutalik

Hello,

sorry for the late response, i was away in the last 2 weeks.


Check the Basic EditNodes example. In that example you can change the name of a node and the changes are displayed using a feedback message. If it's possible to display a feedback with the new name is also possible to put the new name in the database.



Hope it helps