1

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.

4

1 に答える 1

2

jqridには、セル編集、インライン編集、フォーム編集の3つの主要な編集モードがあります。さらに、のようないくつかのハイブリッドソリューションがありますformatter: 'actions'

このオプションcellsubmit: 'clientArray'は、セル編集の場合にのみ使用されます。このオプションediturl: 'clientArray'はインライン編集にのみ使用され、フォーム編集にはこれまでローカルデータの編集はありませんでした。回答では、フォーム編集を使用してローカルデータを編集する方法について説明しました。

したがって、おそらくediturl: 'clientArray'jqGridのオプションを使用する必要があります。

于 2011-11-11T11:43:09.530 に答える