PDA

View Full Version : Pivot Grid how to config width a columns?



HEILEENDURLEY
23 Jul 2013, 2:21 PM
hi everybudy, i have a problem in the next code, I can not find the settings to allow me to place the columns width in my pivot grid.

my code is:


grid = new Ext.grid.PivotGrid({
title : 'Gastos',
store : dsGridCosto,
aggregator: 'sum',
measure : 'valor',

viewConfig: {
trackMouseOver : true,
getCellCls: function(value) {
if (value < 20) {
return 'expense-low';
} else if (value < 75) {
return 'expense-medium';
} else {
return 'expense-high';
}
}
},

leftAxis: [{
dataIndex: 'cliente', width: 400
}],

topAxis: [{
dataIndex: 'ejecutor', width: 200
}]

});
}


45001

somebody can help me please?

mitchellsimoens
25 Jul 2013, 5:01 AM
Have you tried defaultHeaderWidth?

HEILEENDURLEY
25 Jul 2013, 8:47 AM
its very simple, the layout config of panel that contain the pivot grid i change of fit to absolute and ready!!



tPanel = new Ext.Panel({
region: 'center',
width:'200%',
height:'100%',
layout:'absolute',
autoScroll: true
});




45045