View Full Version : RowEditing updateButton

19 Mar 2012, 1:39 AM

I have a grid with the using the RowEditing plugin. Almost each field has a validator that checks whether the data inserted is correct. When I edit the row the update button is inactive and I read that if the fields have validators it remains inactive. My problem is that the button continues to be inactive even after I filled in correctly the form. Moreover the button remains inactive but if I hit Enter key the row is saved/updated correctly. How could I make the button active?


19 Mar 2012, 11:31 AM
The button should remain inactive until the form is valid. Can I get a test case to look at what is going on?

21 Mar 2012, 1:58 AM
All the fields have the same structure as the below:

header: "Initial point",
dataIndex: 'N_KM_INI_1',
width: 100,
sortable : true,
field: {
name: N_KM_INI_1',
xtype: 'numberfield',
minValue: 0,
width: 100,
maxValue: 1000000,
hideTrigger: true,
keyNavEnabled: false,
mouseWheelEnabled: false,
validator: function(val) {
var campo = Ext.getCmp('nKmIniQad2').getValue();
if (campo <= val) {
if(val - campo >= 800) {
return "Km fine non puo' essere minore di km inizio";
} else {
return true;
else {
return "Km fine non puo' essere minore di km inizio";

when I complete filling in all the fields the button remains inactive. Hope it is clear.