I'm using filteredData = $(grid).jqGrid('getGridParam', 'lastSelected')
to get data for exporting on jqGrid. It works fine. But there is an issue in special case.
Example: I make some filtering to make sure that my grid has only one record. Then I delete that record and export grid. My expectation is that an error message is displayed because there is no any record on grid. But grid is still export with the single record above.
I guess it occurs because filteredData
is fetched right at moment which I make filtering, before deleting data. So the filteredData still has value when I export after deleting record.
I'm trying to find a walk-around solution for this issue. Is there any way to solve it ?
Please give me any suggestion if you met this problem before. Thanks in advance.