kendo-ui-core icon indicating copy to clipboard operation
kendo-ui-core copied to clipboard

Incorrect Drag hint value when reordering rows in Grid with locked columns & selectable column

Open PekoPPT opened this issue 2 years ago • 0 comments

Bug report

Get a scenario where we have a Grid with the following configs:

  1. There is a selectable column in the Grid
  2. There are one or more locked columns
  3. The reorderable.row value to true

Having the above configuration, try to reorder random rows. The value in the Drag Hint shows a number of files that is twice the number of the selected for reordering rows.

  • Note: In a scenario with a selectable column to be able to reorder rows, we have to select these rows at first

Reproduction of the problem

  1. Open this Dojo example
  2. Select two random rows in the Grid by checking their checkboxes
  3. Use the Contact Title column to start the row dragging(We need this column because the rows' reorder cannot start from a locked column)

Current behavior

The text inside the Drag Hint is "4 items selected"

Expected/desired behavior

The text inside the Drag Hint should correspond to the number of the selected rows. In the above scenario, the text should be "2 items selected"

Environment

  • Kendo UI version: 2022.2.802
  • jQuery version: x.y
  • Browser: [all]

PekoPPT avatar Sep 01 '22 11:09 PekoPPT