The page is as follows:
After checking 555, click the Delete button below and call the following code:
The final call is Jqgrid's getRowData () method:
However, the runtime found that the value of the key could not be obtained and it could not be deleted correctly. gets the HTML code.
The reason is that the cells in the edit state Jqgrid cannot get the data through the GetRowData method. Reference from:jqgrid cell/row edit mode GetRowData How to get data rows
There are several solutions, because my page is all the additions and deletions, are checked, and then select the bottom to pop up the dialog box, so the table column is not required to edit the state. The column is then changed to non-editable .
After the modification, tick 555, you can see that is in a non-editable state, and then delete, get the column value.
2017.7.25 Jqgrid can't get data in edit state, get HTML code