[CLOSED] How to set grid store sort?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] How to set grid store sort?

    How can I set the store's sort on the serverside without actually sorting the grid? The below code will cause the grid to reload data:

     Me.storePlans.Sort(GetSorters())
    What I want is just tell the store that hey, I gave you new data that's already sorted on these columns so just visually remember the sorters but dont request new data.
    Last edited by Daniil; Apr 05, 2013 at 5:22 AM. Reason: [CLOSED]
  2. #2
    Hello!

    If I did understand you correctly you just need to update UI without real sorting. In this case you should use setSortState: http://docs.sencha.com/ext-js/4-2/#!...d-setSortState .
    App.GridPanel1.headerCt.items.items[0].setSortState('DESC', true, true)
    To use it from ServerSide you should use X.AddScript();
  3. #3
    It's more than just UI since the next reload should persist the sort too. I ended setting the grid's sorters property using X.AddScript

Similar Threads

  1. [CLOSED] Reset store's sort info on grid reload/reconfigure
    By jchau in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Aug 10, 2010, 4:06 PM
  2. [CLOSED] [1.0] Store sort and grouping
    By ljankowski in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 09, 2010, 1:17 PM
  3. Store sort not working?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: May 04, 2009, 11:30 PM
  4. ComboBox to Sort Store By Fields
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Apr 22, 2009, 4:02 PM
  5. Store Sort Type not working
    By bobs in forum 1.x Help
    Replies: 2
    Last Post: Feb 10, 2009, 9:01 AM

Posting Permissions