1. #1
    Sencha Premium Member
    Join Date
    Apr 2009
    Posts
    110
    Vote Rating
    0
    Chods is on a distinguished road

      0  

    Default gridPanel Sort

    gridPanel Sort


    Hi

    Just a quickie. Does anyone know if its possible and how to specify which column should be sorted on by default (i.e when the data is first loaded) and whether is should be asc/desc. I cant find this in any documentation anywhere but i know its out there somewhere.

    Cheers


  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    96
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    In the store config specify:
    Code:
    sortInfo: {field: 'myField', direction: 'ASC'}

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2009
    Posts
    110
    Vote Rating
    0
    Chods is on a distinguished road

      0  

    Default


    Good work! Thanks

Thread Participants: 1