Drag and drop in TreeTable

Hi

We are working with treetable component.
Is it possible to drag and drop table rows within the tree-table?
Also is it possible to drag and drop rows from another table to tree table ?

Need some kind of guidance with this reqirement.

Thanks in advance !

Yes, it is possible to drag and drop rows within the treetable. You need to use setDropHandler.

More info about drag and drop:

https://vaadin.com/book/es/-/page/advanced.dragndrop.html

An example:

https://demo.vaadin.com/book-examples/book#component.treetable.draganddrop

About the second question I am not sure because I have never tried but I can say that it is possible to drag from a tree into a table:

http://demo.vaadin.com/sampler/#ui/drag-drop/dragdrop-table-tree

Cheers.

That’s a great solution.

First question is directly answered.

Second solution I will try out. Looks acheivable.

Thanks Gomez