-
5 Oct 2010 8:26 AM #1
GroupingStore with remoteSort: true does not work
GroupingStore with remoteSort: true does not work
Good morning, I got a little problem, I think that is so bug Ext researched, but so far not found any solution or override .. I use the Rodrigo override this at the moment to facilitate the cluster:
Code:Ext.data.JsonGroupingStore = function(c){ Ext.data.JsonGroupingStore.superclass.constructor.call(this, Ext.apply(c, { proxy: c.proxy || (!c.data ? new Ext.data.HttpProxy({url: c.url}) : undefined), reader: new Ext.data.JsonReader(c, c.fields) })); }; Ext.extend(Ext.data.JsonGroupingStore, Ext.data.GroupingStore, {});it loads right first time, but when you choose to group by another column, returns me the following error:Code:this.storeMovimentacoes = new Ext.data.JsonGroupingStore({ remoteSort: true, root: 'rows', idProperty: 'id', totalProperty: 'total', url : 'include/tesouraria/movimentacaoAction.php?action=listarMovimentacoes', groupField:'departamento', baseParams: { start:0, limit:40 }, fields: [ {name : 'id', type : 'int'}, {name : 'departamento', type : 'string'}, {name : 'tipo_movimentacao', type : 'string'}, {name : 'data_movimentacao', type : 'date', dateFormat: 'Y-m-d'}, {name : 'responsavel', type : 'string'}, {name : 'valor', type : 'float'} ] });
Code:sorters[0] is undefined Line 22112
Thanks!Code:if (this.remoteSort) { 22112 this.singleSort(sorters[0].field, sorters[0].direction); 22113 22114 } else { 22115 this.applySort(); 22116 this.fireEvent('datachanged', this); 22117 }
-
5 Oct 2010 11:23 AM #2
Try to pass a sortInfo config to your store.
e.g.
Code:sortInfo: { field: 'id', direction: 'ASC' }
-
5 Oct 2010 1:51 PM #3
Continues with error
Continues with error
Now my store is like this:
By default, comes bundled under the 'Professor'Code:this.storeProfessores = new Ext.data.JsonGroupingStore({ remoteSort: true, root: 'rows', //idProperty: 'id_pessoa', totalProperty: 'total', url : 'include/ebd/professorAction.php?action=listarProfessores', groupField:'nome', sortInfo:{field: 'nome', direction: "ASC"}, baseParams: { start:0, limit:40 }, fields: [ {name : 'id_pessoa', type : 'int'}, {name : 'nome', type : 'string'}, {name : 'id_classe', type : 'int'}, {name : 'classe', type : 'string'} ] });
If step group by "Classe", works perfectly
back to the group by "Professor" is still working
But if after all this I turn to group by "Classe" returns me the error mentioned above (image)Sem título.png
Similar Threads
-
remoteSort does not work.
By sunrong in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 1 Aug 2010, 7:07 PM -
remoteSort=true on JsonStore don't work
By soffio99 in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 19 Apr 2010, 11:28 AM -
[CLOSED][2.2.x] sort grid with remoteSort: true and horizontal scroll bar
By madamut in forum Ext 2.x: BugsReplies: 10Last Post: 10 Feb 2009, 2:37 PM -
Ext.data.Store, remoteSort:true and method:'get'
By pbarnes in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 18 Jun 2008, 7:20 AM -
Problem getting remoteSort: true action with column sort
By CutterBl in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 31 Jan 2008, 1:57 PM


Reply With Quote
