PDA

View Full Version : Adjust the font colors of the grid headers



f_oliverb
26 Jan 2011, 11:27 PM
Please help me adjust the font colors of the headers to white (excluding the maximum header)


return new Ext.grid.GridPanel({
style: 'margin-top:5px;margin-left:5px;',
store: dataStore,
cm: new Ext.grid.ColumnModel([
{header: Localization.hotelsAvailability.availableRooms,menuDisabled:true, width: 40, sortable: true, dataIndex:'display'
/* renderer: function(value){
return value.name;
}*/
},
{header: Localization.hotelsAvailability.maximum, width: 40,menuDisabled:true, sortable: true, dataIndex:'max_occupancy'},
{header: Localization.hotelsAvailability.availability,menuDisabled:true, width: 25, sortable: true, dataIndex: 'incremental_price',
renderer: function(value){
var toRet;
if(value.length > 5) {
toRet = Localization.hotelsAvailability.available;
} else if(value.length == 1){
toRet = Localization.hotelsAvailability.only+" "+value.length+" "+Localization.hotelsAvailability.room;
} else {
toRet = Localization.hotelsAvailability.only+" "+value.length+" "+Localization.hotelsAvailability.rooms;
}
return toRet;
}
},
{header: Localization.hotelsAvailability.rate,menuDisabled:true, width: 20, sortable: true, dataIndex: 'price'},
{header: "", width: 10, sortable:false,menuDisabled:true, dataIndex: 'currency'},
{header: Localization.hotelsAvailability.average,width: 25, sortable:false,menuDisabled:true, dataIndex: 'average_price'}
]),