1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    103
    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,251
    Vote Rating
    40
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


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

  3. #3
    Sencha User
    Join Date
    Apr 2009
    Posts
    103
    Vote Rating
    0
    Chods is on a distinguished road

      0  

    Default


    Good work! Thanks