1. #1
    Sencha User
    Join Date
    Oct 2009
    Posts
    66
    Vote Rating
    0
    v.madhu is on a distinguished road

      0  

    Default GridPanel Sorting event

    GridPanel Sorting event


    Hello,
    I am implementing remoteSorting in the grid
    I want to call a function when we click "Sort Ascending" or "Sort Descending" from the menu.
    Actually, i tried sortchange event. But this event is getting called after the store gets the response.

    Is there any event or how to call a function as soon as i click "Sort Ascending" or "Sort Descending" from the column menu?

    Thanks.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    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 Condor is a splendid one to behold

      0  

    Default


    The sortchange event is fired after the grid is sorted, not before.

    I assume you are using remoteSort:true? In that case you should be writing a beforeload event handler for the store.

  3. #3
    Sencha User
    Join Date
    Oct 2009
    Posts
    66
    Vote Rating
    0
    v.madhu is on a distinguished road

      0  

    Default


    Thanks for your reply, How can i track "Sort Ascending" or "Sort Descending" click inside beforeload event?

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    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 Condor is a splendid one to behold

      0  

    Default


    Code:
    store.on('beforeload', function(store, options){
      var pn = store.paramNames,
          sort = options.params[pn.sort];
          dir = options.params[pn.dir];
      ...
    });

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