PDA

View Full Version : Grid Control Pagination and sorting



Victor#123
28 Jun 2013, 7:57 AM
We are using the Grid control and facing a few issues. Any response to assist with this will be a great help -
1. We are able to see only 5 records on each page. How do we increase to 20 or more?
2. When we sort by clicking on a column, only the data displayed on that page gets sorted and not the rest of the pages. How do we fix that? I am sure this is a standard Sencha grid feature (like most other 3rd party grids) but we are not able to figure this out...

Thanks,

skirtle
30 Jun 2013, 2:02 PM
1. How many records (models) are you loading into your store? The grid should show all of them. The default pageSize is 25 but that only affects how many records are requested from the server.

2. http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.Store-cfg-remoteSort