Dojox QueryReadStore + Grid demo - paging, sortable and filterable all server-side
The grid is in HTML, store, etc. are JS, sorting is added by extending the model class
Capabilities: load data from server, show data, paging (30 rows at a time), sort, filter
You can see that data are loaded upon demand by scrolling down in the grid below line #30,
open FireBug and you see a server request being issued, to retreive another 30 rows/items.
The store and grid are "generated" and connected in HTML, filtering is done via JS
This store is by default sorted descending by name (not as the one above, which is ascending).