PDA

View Full Version : Adjusting column width dynamically



himan
26 Apr 2010, 9:13 PM
analysisGrid = new Ext.grid.GridPanel({
store: analysisStore,
columns: columns,
renderTo: 'analysis-grid',
autoHeight: false,
height:420,
autoExpandColumn:'title' ,
autoExpandMax:2000,
viewConfig:{
autoFill:true,
forceFit:true,
emptyText:'No Analysis Data found.'
},
border:false,
plugins: [filters],
sm: selModel
})



IN the above grid i m hiding and showing column using setHidden(index, Boolean), but in the process of hide/show columns, width of few columns becomes very large and few columns become very small.
In column model i have define the default width to 80.
plz some one tell me how to make column width equal dynamically?:-/