PDA

View Full Version : sorting across multiple pages in gridpanel



marc123
25 Sep 2012, 4:28 AM
Hi,

I have a gridpanel where multiple pages are displayed. I sort on the dateTime column Desc. Within a page sorting is by datetime desc (newest first) - e.g. on page 1 the newest data is in row 1. But the first page that is displayed contains the oldest data. So across pages sorting is by dateTime asc (the oldest data is displayed on page 1). How can I sort multiple pages by the datetime column and show the most recent data on the first page?

Thanks,

Marc

(Ext 3.4.0)

redraid
25 Sep 2012, 5:03 AM
Enable remoteSort (http://docs.sencha.com/ext-js/3-4/#!/api/Ext.data.Store-cfg-remoteSort) in store config