Good day, i have a grid with boolean column:
var grid = Ext.create('Ext.grid.Panel', {
...
columns: [{
dataIndex: 'visibleForUser',
text: 'Visible',
editor: {
xtype: 'checkboxfield',
inputValue: 1 // <-- this option has no effect
}
},
...
Grid's store is remote via JSON proxy. When i save or update row, the resulting JSON look like:
{... visibleForUser: false, ... }
As you see, ExtJS serializes checkbox value as true
or false
JSON terms.
I need to customize this and serialize to, say, 1
and 0
, any suggestion how to accomplish this ? Thank you.