jQuery UI Widgets Forums TreeGrid How to change the parent of a row

This topic contains 4 replies, has 2 voices, and was last updated by  ahmetuzun 6 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • How to change the parent of a row #98651

    ahmetuzun
    Participant

    Can I update the parent key of a row in treegrid and refresh the treegrid to reflect the change?

    How to change the parent of a row #98723

    Stanislav
    Participant

    Hello ahmetuzun,

    I would suggest you takeing a look at this topic: Link

    More especially at what Peter Stoev said.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    How to change the parent of a row #98727

    ahmetuzun
    Participant

    Hi Stanislav,
    Let me rephrase:

    I have a treegrid like below:

    -Folder1
    —Item1
    —Item2
    -Folder2
    —Item3

    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?

    How to change the parent of a row #98835

    Stanislav
    Participant

    Hello ahmetuzun,

    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:
    Link

    !Note that this can re-arrange elements from the first parent if you select them.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    How to change the parent of a row #98851

    ahmetuzun
    Participant

    Stanislav,

    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.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.