Hello, this is my 1st message on the forum; sure it won't be the last one.
I'm developing two data grids with drag and drop support. Multiple items can be selected from the source data grid, and dropped into the target data grid.
I'm using an drag and drop event listener which completes the operation only in certain cases. I'm using 'event.preventDefault()' but it doesn't work, since it stops the drag and drop from all the items.
My aim is, for example, finally dropping 2 elements from the total 4 elements that I previously selected.
Hope you can help me!
If you call preventDefault, and then add the two you want it should work,
but you'll probably also have to handle dragComplete on the source so it
handles the subset as well.
Thanks for the answer.
Do you mean adding the items I want to drop to the selectedItems array from the DragEvent.dragInititiator?