You must custom the datagrid proxy to make it draggable over the tree panel. The code below shows how to achieve this functionality.
You also need to custom the droppable tree to accept the dragging rows. This is a complex job. You must decide how to insert a new row to the tree, whether to delete the original row when dropped it successfully, etc.
Thank you! So the proxy must be appended to the body element.
But I donno how to custom the droppable tree like:
1 dnd = true cause that's exactly what I need.
2 When a grid's row dropped, don't do anything to the tree, and then change the row's category field and refresh the datagrid.
But it's hard for me, I donno how the tree's dnd works and what kind of element does the tree accepts.