Lobos
22 Sep 2009, 11:48 AM
When defining a autoExpandColumn one must add an id attribute to the column model column item:
var grid = new Ext.grid.GridPanel({
store: store,
width: 600,
region:'center',
margins: '0 5 5 5',
autoExpandColumn: 'group',
columns: [
new Ext.grid.RowNumberer(),
{
id: 'group',
header: 'Group',
dataIndex: 'group',
width: 220,
sortable: true,
Is there any reason whey autoexpand can't pick up it's column from the dataindex as opposed to id? Maybe this is because more than one column can have the same data index? idk Or could there at least be a more intuitive warning added if you forget this? Because the error it does give is so cryptic it would turn turing straight...
Thanks...
var grid = new Ext.grid.GridPanel({
store: store,
width: 600,
region:'center',
margins: '0 5 5 5',
autoExpandColumn: 'group',
columns: [
new Ext.grid.RowNumberer(),
{
id: 'group',
header: 'Group',
dataIndex: 'group',
width: 220,
sortable: true,
Is there any reason whey autoexpand can't pick up it's column from the dataindex as opposed to id? Maybe this is because more than one column can have the same data index? idk Or could there at least be a more intuitive warning added if you forget this? Because the error it does give is so cryptic it would turn turing straight...
Thanks...