General Category > ParamQuery Pro Evaluation Support
i have a problem of method [deleteRow]
(1/1)
fings:
excuse me,
i find a bug of the method [deleteRow];
like this config:
dataModel: { location: "remote"},
pageModel{ type: "remote"},
when i delete one row in page2 or more(page > 1) by method [deleteRow],
it's can not delete correct row of 2times or more,
this my code:
let sel_row = $pqgrid.SelectRow();
let selectArray = sel_row.getSelection();
let _rowIndex = selectArray[0].rowIndx;
$pqgrid.deleteRow({ rowIndx: _rowIndex });
remark: console.log(selectArray); data is correct;
i watch this demo,has same problem
https://paramquery.com/pro/demos/editing_remote_page
paramvir:
Issue with API wr.t. paging is caused when rowIndx / rowIndxPage are used incorrectly.
Please read about rowIndx and rowIndxPage here: https://paramquery.com/pro/tutorial#topic-special-vars
fings:
--- Quote from: paramvir on January 26, 2021, 01:07:09 pm ---Issue with API wr.t. paging is caused when rowIndx / rowIndxPage are used incorrectly.
Please read about rowIndx and rowIndxPage here: https://paramquery.com/pro/tutorial#topic-special-vars
--- End quote ---
thank you, i will earnest to read
fings:
about the bug of deleteRow
repair row 3398:
c.rowIndx = a ? f + l : f
Navigation
[0] Message Index
Go to full version