I have this code:
{
xtype: 'checkcolumn',
header: 'Contacto de Emergencia',
dataIndex: 'contactoEmergencia',
listeners: {
beforecheckchange: function() {
return false;
}
},
width: 60,
editor: {
xtype: 'checkbox',
cls: 'x-grid-checkheader-editor',
inputValue: 1,
uncheckedValue: 0
}
}
When I try to insert a new row into the grid, when I press enter and activate the event to insert the data in this cell, it is sent to me as true: if the checkbox is activated and false: if it is not activated but I need it change those values that you are sending by default by 1 instead of true and 0 instead of false.
Does anyone know how to make this change?