0
votes

My model has a field with definition as below.

{
    name: 'ed_price',
    type: 'number'
}

The column in the Grid Panel has a editor config as

editor:  {
     xtype: 'numberfield'
}

I have celledit enabled on the Grid with a single click. When I click on this column for Edit, I see a default Value 0 in the numberfield. How can I remove it ?

I have tried the below configs on the field definition.

defaultValue: null,
allowNull: true

defaultValue: undefined
1

1 Answers

0
votes

Try to set useNull : true to your model field, after that set default value to null