Hi,
I have a grid table with checkbox and paging. I have also set persistSelection, allowPaging and AllowDelete to True. I am trying to delete rows dynamically with the grid function below:
grid.deleteRecord('id', rows);
where rows is an Object[] retrieved from the grid.getSelectedRecords() which I have filtered out Objects which I do not need. However, the outcome is not what I have expected. All records on every other pages are selected but only those on the first page are deleted. Those records on other pages will remain to be selected and not removed from the grid table.
Then I tried to replace rows with grid.getSelectedRecords():
grid.deleteRecord('id', grid.getSelectedRecords());
This encountered the same problem as well. Looking forward to your help.
Thank you.