jQuery UI Widgets › Forums › TreeGrid › How to change the parent of a row
Tagged: add row, remove row, select, treegrid
This topic contains 4 replies, has 2 voices, and was last updated by ahmetuzun 3 years, 3 months ago.
Can I update the parent key of a row in treegrid and refresh the treegrid to reflect the change?
I would suggest you takeing a look at this topic: Link
More especially at what Peter Stoev said.
Let me rephrase:
I have a treegrid like below:
I want to update the parent key of “Folder2” to “Folder1” so that it will be displayed under “Folder1” with all its children (Item3 in this example).
Is this possible?
I made an example that switches an element’s parent (if you select an element from the second parent, and click the button it will send it to the first)
Here is the example:
!Note that this can re-arrange elements from the first parent if you select them.
Thank you very much for the reply but it has a side effect:
Choose Steven and click the button.
Choose Michael under Steven and click the button.
Michael moves under Andrew but it is not deleted from the children Steven.
You must be logged in to reply to this topic.