1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    66
    Vote Rating
    -1
    fabiojpoli is an unknown quantity at this point

      0  

    Exclamation 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, {});
    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'}
                ]
            });
    it loads right first time, but when you choose to group by another column, returns me the following error:

    Code:
    sorters[0] is undefined
    
    Line 22112
    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 }
    Thanks!

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480
    Vote Rating
    1
    plalx has a spectacular aura about plalx has a spectacular aura about

      0  

    Default


    Try to pass a sortInfo config to your store.

    e.g.

    Code:
     
    sortInfo: {
      field: 'id',
      direction: 'ASC'
     }

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    66
    Vote Rating
    -1
    fabiojpoli is an unknown quantity at this point

      0  

    Exclamation Continues with error

    Continues with error


    Quote Originally Posted by scarsick View Post
    Try to pass a sortInfo config to your store.

    e.g.

    Code:
     
    sortInfo: {
      field: 'id',
      direction: 'ASC'
     }
    Now my store is like this:

    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'}
                ]
            });
    By default, comes bundled under the 'Professor'
    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

  1. remoteSort does not work.
    By sunrong in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 1 Aug 2010, 7:07 PM
  2. remoteSort=true on JsonStore don't work
    By soffio99 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 19 Apr 2010, 11:28 AM
  3. Replies: 10
    Last Post: 10 Feb 2009, 2:37 PM
  4. Ext.data.Store, remoteSort:true and method:'get'
    By pbarnes in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 18 Jun 2008, 7:20 AM
  5. Problem getting remoteSort: true action with column sort
    By CutterBl in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 31 Jan 2008, 1:57 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar