Rows in any grid can be dragged and dropped to other components and vice versa.
This is done by:
dragModel.clsDnD and dropModel.accept play crucial role in creating draggable / droppable relation between grid and other components.dragModel.diDrag option.dropModel.drop callback is the final part that does the actual manipulation of dragged row objects.beforeDrop and afterDrop with help of which we can take custom action in the draggable before / after drop in pqGrid.
In this example, we use afterDrop callback to remove draggable from the custom component.
First of all mutiple row selection is turned on or checkbox selection is turned on.
Then dragModel.dragNodes method is implemented to return array of selected or checked rows.