Unplanned
Last Updated: 02 Oct 2019 14:01 by ADMIN
Lukas
Created on: 26 Sep 2019 06:56
Category: Grid
Type: Bug Report
1
In Batch edit mode, deleted row is not highlighted when HighlightDeletedRows="true" and the first cell is edited
  1. Open your demo for Batch Editing: https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx
  2. Add a new row
  3. Enter values
  4. Click on x to delete

Expected: the row disappears.

Actual result: nothing happens.

 

 

2 comments
ADMIN
Peter Milchev
Posted on: 02 Oct 2019 13:58

Hello Lukas,

Indeed there is a bug but is a bit different. I have changed the title as actually the issue is caused by the fact that the HighlightDeletedRows="true" is set, meaning that the record is not automatically deleted but an Undo button is added. 

The actual issue is due to the fact that the Undo button is added to the first cell by default and the positioning styles are incorrect when the first cell is edited, which makes the cell's position relative instead of static.

The following script can be used as a temporary workaround:

var old = Telerik.Web.UI.GridBatchEditing.prototype._createOverlayDiv;
Telerik.Web.UI.GridBatchEditing.prototype._createOverlayDiv = function (rowElement, tableView) {
    var $rowElement = $(rowElement);
    old.call(this, rowElement, tableView);

    $overlayDiv = $rowElement.find(".rgBatchOverlay").eq(0);
    $rowElement.find("td").not('[class*="rgBatch"]').eq(0).append($overlayDiv);
}

As a small token of gratitude for helping us identify this issue, we have updated your Telerik points.

Regards,
Peter Milchev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Lukas
Posted on: 26 Sep 2019 07:02
Argh, I can't edit the post after submission?
Please attach this new screenshot (private information removed).
Attached Files: