1. #1
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    36
    Vote Rating
    0
    andrea.chiozzi@metislab.net is on a distinguished road

      0  

    Default 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:

    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>'
                                )
                            }
                        ],
    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. You shouldn't really use the Ext.grid.View outside the Ext.grid.Panel. If you need a DataView, see Ext.view.View.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    Answers
    3113
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.

  4. #3
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    36
    Vote Rating
    0
    andrea.chiozzi@metislab.net is on a distinguished road

      0  

    Default


    yes ...
    I see.... I've used xtype:"gridview" instead xtype:'dataview'...

    silly error....

    thanks mitchellsimoens!