I have a situation where I have two grids. (Say two peer grids – alongside each other).
I want to be able to drag a row from one grid to the other – for example, from the left grid to the right grid.
But I also want to be able to drag and drop within, say, the left grid.
Now, if I set up grid1 and grid2 as follows:
var gridCells = $('#grid1').find('.jqx-grid-cell');
gridCells.jqxDragDrop({
appendTo: 'body', dragZIndex: 99999,
dropAction: 'none',
initFeedback: function (feedback) {
feedback.height(25);
},
dropTarget: $('#grid1','#grid2'), revert: true
});
When I want to use the dragend event (i.e.gridCells.on(‘dragEnd’, function (event) {});
it is unclear to me how I can distinguish a dragend event that belongs to grid1, or to grid2.
Do you have any suggestions as to how one can distinguish exactly which grid is the ‘landing’ object?
Best regards,
Alastair