Hi,
I'm trying to make a Ext.grid.Panel with a CheckBox-Column (Checkcolumn) with automatic save if the checkbox-value changed.
Code:
Ext.define('Management.view.MyList', {
extend: 'Ext.grid.Panel',
alias: 'widget.mylist',
store: 'MyStore',
region: 'west',
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1,
listeners: {
beforeedit: function(){
alert("beforeedit");
}
}
})
],
selType: 'cellmodel',
columns: [
{
text : 'Name',
minWidth : 300,
flex : true,
sortable : true,
dataIndex: 'name',
editor: {
xtype: 'textfield',
}
},
{
xtype: 'checkcolumn',
text : 'Active?',
dataIndex: 'active',
width: 80,
editor: {
xtype: 'checkbox',
},
},
],
title: 'Liste',
});
If I edit the name-column the beforeedit (and afterdit) event is fired.
But if I check (or uncheck) the active-column nothing happend...
My goal is a grid like this http://dev.sencha.com/deploy/ext-4.0...er/writer.html with automatic save and a checkbox-column.
Is there a way to do it? Thanks.