PDA

View Full Version : Error: Cannot create an instance of unrecognized alias: widget.checkcolumn



Elfayer
17 Sep 2012, 1:32 AM
Hi,

I have this error when I charge that column in a grid:

{
xtype: 'checkcolumn',
header: '<center>Editor</center>',
dataIndex: 'fil_editor',
align: 'center',
flex: 0.2,
sortable: true,
hideable: false,
field: { xtype: 'checkbox' }
}

I added the ux folder in my Ext folder and I put it as required in the app.js . I don't understand why it's not working.

dawesi
17 Sep 2012, 4:55 AM
have you added your ux to your 'requires' config for your app?

Elfayer
17 Sep 2012, 5:34 AM
app.js :

Ext.Loader.setConfig({ enabled: true });
Ext.Loader.setPath('Ext.ux', '/Ext/src/ux');

Ext.require([
'Ext.data.*',
'Ext.grid.*',
'Ext.form.*',
'Ext.chart.*',
'Ext.layout.container.Fit',
'Ext.container.Viewport',
'Ext.chart.series.Radar',
'Ext.chart.axis.Radial',
'Ext.ux.*',
]);
[...]
});

scottmartin
17 Sep 2012, 5:54 AM
Check your path .. perhaps /examples/ux?

Scott.

Elfayer
17 Sep 2012, 6:09 AM
No the path is right, because I also use 'Ext.ux.DataView.DragSelector' which work.

vietits
17 Sep 2012, 2:46 PM
You should explicitly require Ext.ux.CheckColumn not Ext.ux.* because '*' syntax is applied for standard classes from Ext framework only, not for extension.