PDA

View Full Version : Submitting a form with ediable grid



bkraut
4 Feb 2014, 2:57 PM
Hi,

I have a form layout where in the middle I have an editable grid of form positions. If I edit any field and then submit a form also edit fields from the edit grid are submitted which leads to an error.

Is there any way, that I submit a form but before submit I somehow remove all edit fields from the editable grid?

I hope you understand.
Any help appreciated,

Bojan

Gary Schlosberg
7 Feb 2014, 3:20 PM
I suppose you could disable all of your grid edit fields before processing the submit.

If that proves difficult, Ext4 has a property called isFormField which would seem to do what you need. It is present in 3.4.0, but is unfortunately private in 3.x.
http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.form.Field-property-isFormField