1. #1
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Vote Rating
    21
    Answers
    20
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Question Unanswered: [SOLVED] A grid sorting question

    Unanswered: [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
    Vote Rating
    0
    Answers
    1
    smiletolead is on a distinguished road

      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
    411
    Vote Rating
    21
    Answers
    20
    icfantv will become famous soon enough icfantv will become famous soon enough

      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
    411
    Vote Rating
    21
    Answers
    20
    icfantv will become famous soon enough icfantv will become famous soon enough

      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

Thread Participants: 1

Tags for this Thread