Oct 12, 2011, 3:55 PM
[CLOSED] EditableGrid Plugin - how to avoid page postback on Enter key while editing row
Hi,
We are using ext:GridPanel with plugin for editing rows. It works fine when user press Update button on row editor, but if Enter keyboard button is pressed the whole page is posted back in the middle of editing process that causes the loss of user's work as we allow to edit multiple rows before saving them to server in bulk (need to do bulk validation).
We tried to play with available properties on events like in the sample below, but couldn't get rid of undesirable behaviour to postback on Enter key.
Thank you!
We are using ext:GridPanel with plugin for editing rows. It works fine when user press Update button on row editor, but if Enter keyboard button is pressed the whole page is posted back in the middle of editing process that causes the loss of user's work as we allow to edit multiple rows before saving them to server in bulk (need to do bulk validation).
We tried to play with available properties on events like in the sample below, but couldn't get rid of undesirable behaviour to postback on Enter key.
<Plugins>
<ext:RowEditor ID="RowEditor1" runat="server" SaveText="Update" >
<Listeners>
<PreEdit Handler="getEntityOwners(this);" StopEvent="true" />
<AfterEdit Handler="updateTotal(this);" AutoPostBack="false" StopPropagation="true" StopEvent="true" Delay="100" AutoDataBind="false" />
</Listeners>
</ext:RowEditor>
</Plugins>
There is no KeyDown event available on ext:RowEditor to interrupt/ignore key code 13. Can you advise us how to disable page postback on Enter key while editing row please. Let me know if you need full source code for the page - I'll have to cut it down to only relevant to this problem code.Thank you!
Last edited by Daniil; Oct 14, 2011 at 6:17 AM.
Reason: [CLOSED]