Code:
var projectPurchaseCm = new Ext.ux.grid.LockingColumnModel([
{id:'taskOrder' ,header:'' ,dataIndex: 'taskOrder', width:26,editable:false,editor: new Ext.form.TextField({allowBlank: false}),locked: true},
{id:'taskName',
header: "Task",
dataIndex: 'taskName',
width: 225,
editor: taskComboBox,
renderer:function(value,p, record){
if (taskStore.getCount()==0)
return value;
var object=taskStore.getById(value);
if (object==undefined)
return value;
var retvalue= taskStore.getById(value).get('taskName');
return retvalue;
},locked: true
},
{id:'year' ,header:'yr' ,dataIndex: 'year', width:45,editable:true,editor: yearCombo,sortable:false,
renderer:function(value){
if (yearStore.getCount()==0){
return value;
}
var object=yearStore.getById(value);
if (object==undefined){
return value;
}
var retvalue= yearStore.getById(value).get('name');
return retvalue;
},locked: true
},
{id:'description' ,header:'Description' ,dataIndex: 'description', width:100,editable:true,editor: new Ext.form.TextField({allowBlank: true}),locked: true},
{id:'directCostId',
header: "Cost Centre",
dataIndex: 'directCostId',
width: 100,
editor: contGroupComboBox,
renderer:function(value,p, record){
if (contGroupStore.getCount()==0)
return value;
var object=contGroupStore.getById(value);
if (object==undefined)
return value;
var retvalue= contGroupStore.getById(value).get('description');
return retvalue;
},locked: true
},
{id:'m1' ,header:'M1' ,dataIndex: 'm1', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true})},
{id:'m2' ,header:'M2' ,dataIndex: 'm2', width:40, editable:true,editor: new Ext.form.TextField({allowBlank: true})},
{id:'m3' ,header:'M3' ,dataIndex: 'm3', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true,maxLength: 200}),css : "background-color: #EEF0F2;border-color:#EEF0F2;"},
{id:'m4' ,header:'M4' ,dataIndex: 'm4', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true})},
{id:'m5' ,header:'M5' ,dataIndex: 'm5', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true}),css : "background-color: #EEF0F2;border-color:#EEF0F2;"},
{id:'m6' ,header:'M6' ,dataIndex: 'm6', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true})},
{id:'m7' ,header:'M7' ,dataIndex: 'm7', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true}),css : "background-color: #EEF0F2;border-color:#EEF0F2;"},
{id:'m8' ,header:'M8' ,dataIndex: 'm8', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true})},
{id:'m9' ,header:'M9' ,dataIndex: 'm9', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true}),css : "background-color: #EEF0F2;border-color:#EEF0F2;"},
{id:'m10' ,header:'M10' ,dataIndex: 'm10', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true})},
{id:'m11' ,header:'M11' ,dataIndex: 'm11', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true}),css : "background-color: #EEF0F2;border-color:#EEF0F2;"},
{id:'m12' ,header:'M12' ,dataIndex: 'm12', width:40,editable:true,editor: new Ext.form.TextField({allowBlank: true})},
{id:'tot' ,header:'Total' ,dataIndex: 'tot', width:40,editable:false,editor: new Ext.form.TextField({allowBlank: true}),css : "background-color: #EEF0F2;border-color:#EEF0F2;"},
ProjectPurchaseRowActions
]);
Code:
var ProjectPurchaseStore = new Ext.data.GroupingStore({
proxy: new Ext.data.HttpProxy({url: selPrjPurchasePath}),
reader: new Ext.data.JsonReader({totalProperty: 'totalCount', root:'results'}, ProjectPurchaseRecord),
baseParams: {csid:csid},
sortInfo:{field: 'year' , direction: 'DESC'},
remoteSort: false,
groupField: 'taskOrder',
multiSortInfo: {
sorters: [{ field: 'year', direction: "ASC" },
{ field: 'taskOrder', direction: "ASC"}],
direction: 'DESC'
},
groupDir: 'DESC',
listeners:{
'load': function(){
addTotalRow();
}
},
viewConfig: {
getRowClass: function(record, rowIndex, rp, ds){
if(record.data.taskEmpty){
return 'correct-row';
}
}
}
});
In the screenshot i want red should be in the whole column