optikalefx / OpenJS-Grid

OpenJS Grid is the easiest jQuery Grid ever. With very little work you can have a data grid that can do everything from sorting and searching to complex database queries. Best of all, its open source. So you can learn how it's all done.
http://square-bracket.com/openjs
MIT License
96 stars 46 forks source link

Grid Paging control #26

Closed ksubba closed 11 years ago

ksubba commented 11 years ago

Hi,

What's an option to set page number of the grid on run-time ? I want to preset the page number of a grid based on the query string via GET.

Advice ? Kaushal

optikalefx commented 11 years ago

In javascript, when you make the first call or call $grid.load()

page: 2

In PHP, before you render it out

$_POST['page'] = 2;