PDA

View Full Version : Cannot resize column



harjits
8 Nov 2012, 9:59 AM
Hi there,

I have the grid defined the following way, I can't re-size the columns , is there anything I'm missing ?

this.gridPanel = new Ext.grid.GridPanel({


autoScroll : true,
id : 'FeResultsView',
title: 'Finance Account',
stripeRows : true,
margins : '0',
flex:10,
height:200,
forceFit : true,
loadMask:true,
resize:true,


cls:'mygrid',
columnLines : true,
tbar:[],
store : parent.store,
cm : new Ext.grid.ColumnModel({
columns : [{
header : 'Finance Account',
width : 150,
dataIndex : 'finAccount'
}, {
header : 'Account Type',
width : 150,
dataIndex : 'accountType'
}, {
header : 'Institution',
width : 150,
dataIndex : 'institution'
}, {
header : 'Associated Entity',
width : 150,
dataIndex : 'associatedEntity'
}, {
header : 'Group Id',
width : 100,
dataIndex : 'groupID'
}, {
header : 'Date Of Info',
width : 400,
dataIndex : 'dateOfInfo'
}],
defaults : {
sortable : true,
menuDisabled : false,
width : 150
},
viewConfig: {
}
}),


sm : new Ext.grid.RowSelectionModel({
singleSelect : true

}),

trackMouseOver : true
//bbar : parent.pager //zz :disable page bar
});

skirtle
9 Nov 2012, 1:44 PM
Please don't double post.

The other copy of this thread is here:

http://www.sencha.com/forum/showthread.php?248459