0

I have a grid that can be paging, sorted, and edited. I have to save data after I get all the data in the grid.

For example, if you sorted and edited a grid, you must be able to import the edited and sorted data, that is, the data displayed on the screen.

I used this method.

$('#grid).jqGrid('getRowData')

It can get edited grid data, but it only takes one page of data.

so I used this method.

$('#grid).jqGrid('getGridParam', 'data)

It can get all grid data, but it's not apply sorting.

I tried this answer. answer It can get sorting data, but it's not apply inline edit.

I want to get all the grid data. Is there any way?

nanami
  • 1
  • 1

1 Answers1

0

I found the answer. It's very simple. :( Just add {key: true} in colModel.

nanami
  • 1
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 05 '22 at 05:41