General Category > Bug Report

The deletRow function operates abnormally.



I checked the abnormal operation of the deleteRow function.

The data I am testing is a list of 5 pages in total.
DeleteRow works normally on page 1 and 2.
However, it works abnormally on pages 3, 4, and 5.

The phenomenon is not deleting the selected row, but deleting the first row on the current page unconditionally.

The code I used is as follows.

--- Code: ---var rowList = grid.Checkbox("state").getCheckedNodes().map(function (rowDataObj) {
            var rowIndxObj = grid.getRowIndx({ rowData: rowDataObj });
            return { rowIndx: rowIndxObj.rowIndx };
        grid.deleteRow({ rowList: rowList });

--- End code ---

The rowIndx stamped on the console is displayed correctly.

However, the first row is deleted unconditionally.

Please help me.

I checked your code in this example:, it works fine for every page.

Do you experience mentioned problem for local or remote paging.

Could you please share a jsfiddle / stackblitz.

Here is stackblitz url:

Check the check button and click the delete button located in the upper left corner.

The remote server is not ready. So I did local paging using json data. It's deleted normally like this.

But I don't do local paging, I do remote paging. So I think there is a problem with remote paging.

Is there an example of multi-deletion from a grid using remote paging?

Ok, I see the issue in delete rows with remote paging, I'm looking further into it for solution.

This is fixed in v7.7.0


[0] Message Index

Go to full version