We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42887
    • 19 Posts
    MODX: 2.2.6-pl

    Hi all,

    I'm wondering if it is possible to make the drag and drop portion of the headers within MODX "stick" so that when a user comes back to the table, it's sorted/organized how they last left it. So say I sort 'Full Name' to descending, when I come back a day later, it should still be sorted descending but instead it's defaulting to 'ASC' (as per my php code). I've attached a picture to better explain since I'm nearly certain my terminology is incorrect laugh If this is possible, a hand in getting me started would be great -- documents, reading, whatever. I don't mind doing the work, just not sure where/how to start! Thanks in advance!

    MODX: 2.2.6-pl

    This question has been answered by modx125. See the first response.

    [ed. note: modx125 last edited this post 12 years, 9 months ago.]
    • discuss.answer
      • 42887
      • 19 Posts
      For future reference: hopefully this helps someone down the road...to do the above you set 'stateful' to `true` in the Ext.grid config. Here is some sample code:
      var grid = new Ext.grid.GridPanel({
         ...
         stateful: true,


      And a decent link to read: http://damiansromek.pl/2010/12/20/how-to-extjs-stateful-components/

      That does the trick. Seems the built in option works well through my last couple days of testing.