Oct 03, 2012, 2:48 PM
[CLOSED] setting the height of a grid column header
Hi,
How do you set the height of the grid column header. The code below use to work. but suddenly when we got the latest version of the library. it stopped working with the error that setHeight is undefined on the column. How can I set the height of the column header
How do you set the height of the grid column header. The code below use to work. but suddenly when we got the latest version of the library. it stopped working with the error that setHeight is undefined on the column. How can I set the height of the column header
var config = {
xtype: "grid",
styleHtmlContent: true,
frame: true,
store: store,
stripeRows: true,
stateful: true,
viewConfig: {
stripeRows: true
},
listeners: {
beforerender: function (cmp, eOpts) {
if (cmp.columns[0].height) {
cmp.columns[0].setHeight(cmp.columns[0].height);
}
}
},
plugins: [],
columns: columns,
selType: 'rowmodel'
};
var grid = Ext.create('Ext.grid.Panel', config);
return grid;
Last edited by Daniil; Oct 03, 2012 at 9:10 PM.
Reason: [CLOSED]