[CLOSED] How to sort a Grid on the client?

  1. #1

    [CLOSED] How to sort a Grid on the client?

    Hi,

    I would like to know if it's possible to call a sorting function on one of the GridPanel columns in JS in its listeners. A code sample would be highly appreciated.

    Thanks,

    Vadym
    Last edited by Daniil; Feb 09, 2012 at 4:34 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please use the Store's sort method.
    http://docs.sencha.com/ext-js/3-4/#!...re-method-sort

    Example
    GridPanel1.getStore().sort("columnDataIndex", "ASC");
  3. #3
    Thanks a lot Daniil!

    That call does what I need.

    Vadym
  4. #4

    Thank

    Quote Originally Posted by Daniil View Post
    Hi,

    Please use the Store's sort method.
    http://docs.sencha.com/ext-js/3-4/#!...re-method-sort

    Example
    GridPanel1.getStore().sort("columnDataIndex", "ASC");
    Thank you so much ;)
  5. #5
    Hi @stratek,

    You are welcome! IThat is good that it helped you as well!

Similar Threads

  1. Replies: 4
    Last Post: Jul 25, 2011, 4:57 PM
  2. error on filtering after grid sort
    By ric_aginity in forum 1.x Help
    Replies: 1
    Last Post: Jul 22, 2011, 9:29 AM
  3. Replies: 0
    Last Post: Sep 17, 2009, 8:04 AM
  4. [CLOSED] Remove sort Asc/Desc from grid header context menu
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 29, 2009, 2:59 PM
  5. [CLOSED] Manually Set Grid Header Sort Icon
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 09, 2009, 12:22 PM

Posting Permissions