PDA

View Full Version : GridPanel and checkcolumn error



strad84
12 Feb 2012, 2:42 AM
I get these error if add the checkcolumn to gridpanel

from Chome: "Uncaught TypeError: Cannot call method 'substring' of undefined"

from Firefox : "g is undefined"

and this is my code...

xtype: 'gridpanel',
itemId: 'pEsp',
id:'pEsp',
title: 'Espo',
store: esportore,
anchor: '100%',
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'nome',
header: 'listaValori',
width:150
},{
xtype: 'checkcolumn',
dataIndex: 'stato',
header:'stato',
width:30
}
],
viewConfig: {


},
selModel: Ext.create('Ext.selection.CheckboxModel', {


})

mitchellsimoens
12 Feb 2012, 8:06 AM
The checkcolumn is not part of the framework. Have you loaded it from the examples/ux folder?

strad84
12 Feb 2012, 10:37 AM
No, problem solved !! :)

But if i want to use a check column that is part of the framework? What should i do?

mitchellsimoens
12 Feb 2012, 10:42 AM
You need to require it so Ext.Loader will include it. You will need to setup the Ext.ux namespace as a path in Ext.Loader also.