Hello,
I am using Suite Pro and developing drag and drop functionality in a tree table. I have also made some configurations and functional logic, hoping to achieve some control
I have the following requirements:
- Only allow drag and drop of tasks at the same level
- Only allow dragging and dropping under the same parent task
- Dragging only allows for forward and backward insertion, and cannot be set as a child
- Dragging and Carrying Descendants Task
I demonstrated the above functionality through custom logic using the before RowDrop and after RowDrop methods.
I would like to inquire if there is a better method or parameter that I have not discovered to meet this requirement.
The configuration reference is as follows
dragMode: 'both'
dragItem: 'row'
dragPanel:true,
dropBehaviour: 'sibling' ,
Thanks
Looking forward to the answer