Reputation: 6296
Is there anyway to cancel the post of the row data to the server when editing a row inplace and accepting the edit (pressing enter)?.
I want to do this because I need to post all data at once to the server, not row by row. So, I have a button that when pressed reads the grid data and sends it to the server through an ajax call. This is why I need to cancel the per row posting.
Edit: I have noticed there's a grid option when constructing that is supposed to do what I want, but at least for me, it doesn't work, the option is cellsubmit:'clientArray'.
Thanks in advance.
Upvotes: 1
Views: 291
Reputation: 221997
There are three main editing modes in jqrid: cell editing, inline editing and form editing. There are additionally some hybrid solutions like formatter: 'actions'
.
The option cellsubmit: 'clientArray'
are used only in case of cell editing. The option editurl: 'clientArray'
are used only for inline editing and the form editing has till not now editing of local data. In the answer I do described how one can use form editing to edit local data.
So you should probably just use editurl: 'clientArray'
option of jqGrid.
Upvotes: 2