Results 1 to 3 of 3

Thread: GridView: I get always this error --> this.headerCt is undefined

  1. #1
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    38
    Vote Rating
    0
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    38
    Vote Rating
    0
      0  

    Default

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

    silly error....

    thanks mitchellsimoens!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •