Unplanned
Last Updated: 18 Jul 2022 05:02 by Curt
Curt
Created on: 18 Jul 2022 05:02
Category: Grid
Type: Bug Report
0
DropTarget does not return the proper target in drag and drop between Grids

Bug report

Reproduction of the problem

Dojo example: https://dojo.telerik.com/InUYAheR/4
Drag and drop a row from Grid2 to Grid1 by following the steps below:

  1. Click and hold down the mouse button within a Grid2 row, just before its ID value or a little after it.
  2. Drag the row to Grid1 and drop it over row 3 or row 4.

Current behavior

Grid1's first row values get updated, instead of the drop target row values. This is because e.target in the DropTarget's "drop" event does not return the actual target you drop over.
If you click and drag in the middle of the Grid2 row, drag it and drop it over a row in Grid1, the drag and drop functionality works as expected: e.target returns the correct target.

Expected/desired behavior

e.target should consistently return the target you drop over, regardless of where in the dragged row you have clicked.

Environment

  • Kendo UI version: 2022.2.621
  • jQuery version: x.y
  • Browser: [all]
0 comments