-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Single Node #1763
Comments
I guess you do not need to change the "standard" properties, which you can do with: If you need additional changes - you can change the node object directly:
You may have to If this does not answer your question let me know and I will reopen. |
Hi, vakata!, as EnergyTeam asked, is there any way to reload the json data from a single node? This is my case: I have a product's categories tree with a subcategories hierarchy. Then added a context-menu with an "Edit" action, which renders a modal with category (node) information. The update only affects the selected node (properties), not its inside structure. Finally, I want to refresh only the node by ajax. I tried with refresh_node and load_node methods, but they only reload the node children, not self data. As you answered, I can mannually set node properties, but in my case I have 16 properties in node. Any suggestion? |
There is nothing built-in, but whether it is 1 or a 100 properties - the method above will work. You can go over all the properties the server returns (in your custom code), and apply those to the node, you do not have to hard-code all 16. |
I have this problem, I find a folder with children, I would like to have the ability to update some attributes of the folder without deleting all the children and without having to re-insert all the tree dates, I would like a function that could be "Update_node" to update from an existing element only that node without losing the children, is it possible?
I tried to use create_node but obviously deleted all children..
Can you help me?
Thanks
The text was updated successfully, but these errors were encountered: