View Full Version : GridView: I get always this error --> this.headerCt is undefined

2 Feb 2012, 8:52 AM
Hi folks,
time ago, in ExtJs3 I has a wonderfull Ext.DataView component... as son of ext.windows ...
Now in ExtJs4 I've translate it in this one:

items: [{
xtype: 'gridview',
id: 'thumb-view',
itemSelector: 'div.thumb-wrap',
style: 'overflow: auto;',
emptyText : 'no image',
selModel: {
mode: 'SINGLE' ,
allowDeselect: false
store: thumbStore,
tpl: new Ext.XTemplate(
'<tpl for=".">',
bla bla ba lba bla bla

But this doesn't work.. I get always this error:

this.headerCt is undefined
this.headerCt.view = this;

I've tried to add sometimes like columns:{[ -COLUMNS CONFIG -]} but it is useless...

Can you help me please?
thank you very much.

2 Feb 2012, 9:35 AM
You shouldn't really use the Ext.grid.View outside the Ext.grid.Panel. If you need a DataView, see Ext.view.View.

2 Feb 2012, 9:48 AM
yes ...
I see.... I've used xtype:"gridview" instead xtype:'dataview'...

silly error....

thanks mitchellsimoens!