Results 1 to 4 of 4

Thread: this.grid.store.getGroupState is not a function?

  1. #1

    Default this.grid.store.getGroupState is not a function?

    Hi again.

    I have tried to do totals sum row, just like in example http://extjs.com/deploy/dev/examples/grid/totals.html

    Anyway, when I include GroupSummay.js file which is used also in example, I got error message same as in topic (this.grid.store.getGroupState is not a function).

    What can be wrong?

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996

    Default

    Usually doesn't hurt to post your code if you want help with your code.

    Did you inspect the dom for 'this' in firebug at that point in your code?

  3. #3
    Sencha User
    Join Date
    Sep 2008
    Posts
    7

    Default Problem Solved!

    I ran into the same problem using this plugin.... here's how I solved it (line in bold)

    Code:
                store: new Ext.data.JsonStore({
                    url: 'ds.jobs.staff.php', totalProperty: 'total', root: 'data',
                    id: 'jobstaffid', fields: [
                        {name: 'jobid'},
                        {name: 'jobstaffid'},
                        {name: 'firstname'},
                        {name: 'lastname'},
                        {name: 'phone'},
                        {name: 'recording_rate', type: 'int'},
                        {name: 'recording', type: 'int'},
                        {name: 'office_rate', type: 'int'},
                        {name: 'office', type: 'int'},
                        {name: 'travel_rate', type: 'int'},
                        {name: 'travel', type: 'int'}
                    ],
                    sortInfo: this.sortInfo,
                    remoteSort: true, baseParams: {jobid: this.jobid},
                    groupField: 'jobid',
                    getGroupState: Ext.emptyFn
                }),
    Hope this helps...

  4. #4
    Sencha User Zeebee's Avatar
    Join Date
    Nov 2009
    Location
    zaventem
    Posts
    53

    Exclamation

    Seems to me you try to do a grouping on a non-grouping store. Either you use a groupingstore or you don't so you dont have to 'fake' the groupstate function.

Posting Permissions

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