Drag and drop - create a new Grid Row while dragging

I am using Sortable Grid here to do drag and drop in my application. However, I want to dynamically create a string on drop. I mean if there are two rows in the Sortable grid. If the user drags an element and thinks about creating a third row before dropping it, then he / she should be able to do so by dropping below the second row. How should I do it?

+3


source to share


1 answer


Use div

below margins and use ondragenter

to prepare your program for a new line. I don't know how the plugin works, but it should help. Make div

it as high as you want, and this will be the distance below the list that you can choose (I recommend the height of the grid cells)



0


source







All Articles