View Full Version : Newbie: Grid Sorting

8 Dec 2009, 5:45 PM

I know this is probably a trivial question, but I can't find the solution in the javadocs nor in these forums. Please help?

I have a grid that display emails with the columns Sender Name, Subject and Date Sent. I want to start the grid displaying the emails sorted by Date Sent. How can I do that?

Also, is it possible to highlight the emails that have not been read?

8 Dec 2009, 10:52 PM
Maybe you want to set the default sort order? the first time user sees the list in a grid, it should be sorted by date sent? Right? If so, maybe you need to provide already sorted list (by date sent) to the store?

9 Dec 2009, 4:56 AM
You can use the
com.extjs.gxt.ui.client.store.StoreSorter class on a Store