Set page in jqgrid – JQuery


The .trigger(\’reloadGrid\’) will reload the grid to page 1. So you did setGridParam({page:10}) but then right after .trigger(\’reloadGrid\’) refreshed the grid to page 1.

To set the grid to page 10 do this:

$(\”#editGrid\”).trigger(\”reloadGrid\”,[{page:10}]);

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s