-
2 Feb 2012 8:52 AM #1
Answered: GridView: I get always this error --> this.headerCt is undefined
Answered: GridView: I get always this error --> this.headerCt is undefined
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:
But this doesn't work.. I get always this error:Code: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 '</tpl>' ) } ],
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.
-
Best Answer Posted by mitchellsimoens
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:35 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
- Answers
- 3113
You shouldn't really use the Ext.grid.View outside the Ext.grid.Panel. If you need a DataView, see Ext.view.View.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
2 Feb 2012 9:48 AM #3
yes ...
I see.... I've used xtype:"gridview" instead xtype:'dataview'...
silly error....
thanks mitchellsimoens!


Reply With Quote