View Full Version : this.grid.store.getGroupState is not a function?

8 Jun 2008, 11:56 PM
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?

9 Jun 2008, 4:06 PM
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?

14 Jun 2009, 4:37 AM
I ran into the same problem using this plugin.... here's how I solved it (line in bold)

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...

8 Dec 2009, 11:15 PM
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.