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
});
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
});