PDA

View Full Version : Manual widening of grid column causes auto-expanding/shortening of other grid columns



Joyfulbob
27 Oct 2011, 9:20 AM
I've got a Grouping grid and when you turn off Grouping and then manually expand the width of a column by dragging the column hdg border, afterwards if you just click in a column row the grid column widens/expands! Successive click widen it even more, until you've got a ~2000px wide column.
If I click a different column, the column will then narrow.
Then after the 1st time the columns cannot be manually shortened/expanded.
The column menu does not work and there is no drop down arrow displayed.

It's as if turning off Grouping messes with the rendered grid. I've other similar type grids that don't do this.

I'll post the grid definition; not sure what to look at.


...
xtype: 'gridpanel',
border: false,
height: 485,
listeners: {
scope: this,
dblclick: this.onGridDoubleClick,
viewready: function(){ //Now position grid to last row, so today's Tasks are visible
var grid = Ext.getCmp('workWithTasksGrid');
var c = grid.getStore().getCount();
grid.getSelectionModel().selectRow(c);
grid.getView().focusRow(c);
},
afterrender: function(){
console.info('afterrender');
}
},
//selModel: IT.task.selModel,
selModel: new Ext.grid.RowSelectionModel({singleSelect: false}),
store: this.buildStore(),
view: new Ext.grid.GroupingView({
startCollapsed: true,
enableRowBody: false,
hideGroupedColumn: false,
groupTextTpl: '{[ values.rs[0].data["WKSDT"].format("m/d/y") ]} - ' +
'{[ values.rs[0].data["TKDAYTEXT"] ]}: {[values.rs.length]} {[values.rs.length > 1 ? "tasks" : "task"]}'
}),
plugins: [ IT.task.menuPlugin, IT.grid.Expander, IT.task.summary ],
columns: [
IT.grid.Expander,
...
{