Last Updated: 19 May 2022 10:29 by ADMIN
Created on: 14 Mar 2022 12:31
Category: Grid
Type: Bug Report
The "rowReorder" event does not return a correct "oldIndex" and "newIndnex" in hierarchy when child grids are expanded

### Bug report

When reordering expanded rows, the "rowReorder" event does not return a correct "oldIndex".

### Reproduction of the problem

1. Create a hierarchical grid and enable the reorderable.rows property;

2. Expand all rows;

3. Handle the "rowReorder" event and log the event data in the browser console;

4. Move the second row above the first row. The property "oldIndex" returns a wrong value. It should be "1".

A Dojo sample for reproduction:

### Expected/desired behavior

The "rowReorder" event of the grid should return the correct indexes of the moved row.

### Environment

* **Kendo UI version: 2022.1.301
* **jQuery version: 1.12.4
* **Browser: [all]

1 comment
Posted on: 17 Mar 2022 12:10
The same is also true for the "newIndex" value. It would also be nice if the RowReorder event would expose the row that was dropped onto along with the "above or below" value. Adding additional drag and drop events such as DragOver would also be nice. These additions would be helpful in the scenario where custom logic beyond the typical drag and drop scenario is necessary.