PDA

View Full Version : [FIXED] Cannot remove a Toolbar from a grid, says "Cannot Delete Grid Column..."



TheCatWhisperer
29 Oct 2010, 3:24 AM
here's the code for the section in question:

As you can see, there is another column and a checkbox section model added to the grid... Even without the checkbox selection model, i still cannot remove it.. I'm stuck opening the project file by hand & editing it :|



{
xtype: 'grid',
fieldLabel: 'Categories',
height: 135,
enableColumnHide: false,
enableColumnMove: false,
enableColumnResize: false,
enableHdMenu: false,
hideHeaders: true,
viewConfig: {forceFit: true, emptyText: 'No Categories available'},
ref: 'categoriesGrid',
selModel: new Ext.grid.CheckboxSelectionModel({

}),
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'bool',
header: 'Column',
sortable: true,
width: 100
}
],
tbar: {
xtype: 'toolbar',
items: [
{
xtype: 'button',
text: 'Add',
iconCls: 'gs-icon-add'
},
{
xtype: 'button',
text: 'Remove',
iconCls: 'gs-icon-remove'
}
]
}
}


PS (off topic): why doesn't the CheckBoxSelectionModel have an xtype? I noticed in the EXT source that it is one of the few classes that doesn't...

jarrednicholls
19 Dec 2010, 9:55 PM
Fixed in 1.0.3.