xtype : "percentdonecolumn",
width : 100
and i have Done column
xtype : 'checkcolumn',
header: 'Done',
dataIndex: 'TaskStatus',
No it is to catch changes on the percentdone fieldOne more thing,
the above override function is to check the checkbox right?
Ext.define('Gnt.examples.advanced.model.Task', {
extend : 'Gnt.model.Task',
setPercentDone : function (value) {
this.callParent(arguments);
this.set('DoneField',value === 100);
});
Any examples???
{
xtype : "percentdonecolumn",
width : 100
},
{
xtype : 'checkcolumn',
header: 'Done',
dataIndex: 'TaskStatus',
width: 75,
listeners : {
checkchange : function(item, rowIndex, checked, eOpts){
var currTask = ganttPanelObject.taskStore.data.items[rowIndex];
if(checked){
currTask.set('PercentDone', 100);
}else{
currTask.set('PercentDone', 0);
}
},
}
},