Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    104
    Vote Rating
    3
    gatherworks is on a distinguished road

      0  

    Default Setting the initial sorters on a store

    Setting the initial sorters on a store


    There does not seem to be a way to set the initial sorters on a store that involves a couple of fields with DESC order.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,168
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Maybe you can clarify what you tried?

    I just added a Store, added multiple sorters to it and then configured them. Seems to work for me.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    104
    Vote Rating
    3
    gatherworks is on a distinguished road

      0  

    Default


    Maybe I just don't understand how to do it then.

    Let's say, I want to set this up:
    sorters: [ {
    property:'nuut',
    direction:'DESC'
    },{
    property:'name',
    direction:'ASC'
    }]

    Since there is no sorters to set in Designer, I have to set defaultSortDirection to "DESC" and sortRoot to "nuut". However, I am not sure how to cope with the 2nd field with Designer.

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2009
    Posts
    104
    Vote Rating
    3
    gatherworks is on a distinguished road

      0  

    Default


    I figured out how to do it... add sorters from the toolbox and do not get distracted by the rest.

    Thanks!

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,168
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Glad to see you figured it out!
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  6. #6
    Sencha User
    Join Date
    Dec 2010
    Location
    Toronto
    Posts
    62
    Vote Rating
    1
    thomsonzh is on a distinguished road

      0  

    Default


    Could you please give me your sample to to sort the store? I meet same question. Help me! I set store like below code, it is not working. I am using extjs 3.X

    var store = new Ext.data.JsonStore({
    totalProperty: "results",
    url: 'department.aspx?action=read',
    root: 'records', remoteSort: true,
    fields: ['id', 'department', 'description',
    'department',
    'division',
    'divisionid',
    'active'],
    sorters: [{
    property: 'divisionid',
    direction: 'DESC'
    },{
    property: 'department',
    direction: 'ASC'
    }]
    });

    Thanks,
    Thomson

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."