Hybrid View

grid pagination, sort help

I'm new to extjs grid, and need some help with the sort (it's visible but not working), and pagination. I took the basic "sample" grid example by bd318, and modified the files (sample.js, sample.php, sample.html) for my data. It's using Json. The good news is that it successfully retrieves the data and puts it in the grid. However, I've got two problems:

1) I can't figure out how to provide pagination.
2) When I right-click on the column and click sort-ascending or sort-descending, nothing happens.

The grid has two sort-options.
if this is set:remoteSort: true
a request is send to the external file with the sort-param as GET/POST, so the script has to retrieve the sorted data.
If the flag is not set, the grid sorts the "visible" rows (like in the examples)