jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree Dropping nodes from tree into grid

This topic contains 2 replies, has 2 voices, and was last updated by  aoverton07 12 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Dropping nodes from tree into grid #18801

    Mark
    Member

    Hi,

    I have populated the tree control and I am looking to drop nodes onto a grid. When dropped they will create a new grid row with this data. I have built this, but cannot get the dragEnd event to fire on the grid. Is this possible?

    Thanks

    Mark

    Dropping nodes from tree into grid #18956

    Mark
    Member

    any ideas on this?

    Dropping nodes from tree into grid #23282

    aoverton07
    Participant

    Yes, I have implemented this functionality. You need to compare the drop coordinates of the tree item with the grid coordinates. You can get the grid coordinates with the grid.offset() method, and find the bounds with grid.width() and grid.height(). If you dropped it inside the grid, add the appropriate record to the database table your grid is referencing via ajax, then call the updatebounddata method upon completion of the ajax and your grid should show a new row!

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

You must be logged in to reply to this topic.