Hi I tried to edit data before the data store into grid because I have to calculate some values.
I modified the model field like this
fields: ['name', 'email', 'phone',
{
name: 'check',
convert: function(value, record) {
return 1;
}
}
]
and bind dataIndex to the column
columns: [{
...
}
}, {
...
}, {
xtype: 'checkcolumn',
text: 'Phone',
dataIndex: 'check'
}]
When I execute this I found the checkcolumn cannot be editable. What's wrong about this?
Thats because you always return 1. You need to do for example: