PDA

View Full Version : How to add extra event at RowEditor and also keep 'Update' button always active?



netemp
14 Nov 2011, 7:03 AM
I am using row editor plugin - Ext.grid.plugin.RowEditing - in ExtJs version 4.0.7

In this, the fields are validated on change (firing a function - onFieldChange from RowEditor) and depending upon the validity of the fields, 'Update' button is enabled/disabled.

There are following two requirements which I need to meet as following:

1. Validate the fields on blur and not on change.

2. Always keep the 'Update' button enabled.

Could anyone please guide that how could this be achieved? That is, how to add an extra event at RowEditor and also keep the 'Update' button enabled?

TIA

mitchellsimoens
16 Nov 2011, 12:44 PM
On a Text field, what happens if you set validateOnBlur to true and validateOnChange to false?
The update button will be disabled based on if the form is valid. Do you have validations on any field?

netemp
25 Nov 2011, 6:09 AM
Thanks for the post MitchellSimoens. I resolved this issue by overriding RowEditor.