Results 1 to 4 of 4

Thread: [SOLVED] A grid sorting question

  1. #1
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    413
    Answers
    20
    Vote Rating
    21
      0  

    Question [SOLVED] A grid sorting question

    Is there a way to ask a grid (or one of it's members) on what column the data is currently being sorted?

  2. #2
    Sencha User
    Join Date
    Nov 2009
    Posts
    51
    Answers
    1
    Vote Rating
    0
      0  

    Default

    In GXT 2.2.5, there is a method on store: store.getSortField() which gives the field on which grid is currently sorted. I don't see this method in GXT 3.0.

  3. #3
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    413
    Answers
    20
    Vote Rating
    21
      0  

    Default

    I'm hoping I actually don't need to care if I can get this implemented correctly.

    Our grid filters are separate from the column headers in that they occupy a toolbar above the grid and a user clicks "Search" or "Reset Search" buttons to filter the data. I have a way to set the value of the filters based on the values entered by the user in those filter fields, but I have yet to discover a way to fire a "Search" event to the grid or its supporting cast to tell it to execute a filtered query.

  4. #4
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    413
    Answers
    20
    Vote Rating
    21
      0  

    Default

    I was indeed able to get this working without having to care about the current column being sorted. For a write up, see this thread: http://www.sencha.com/forum/showthre...store&p=740261

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •