views:

27

answers:

2

Hello, I am trying to figure out how to invoke a jquery grid from client side to refresh itself. So once the page is loaded it will request its own data.

A: 

http://trirand.net/demoaspnetmvc.aspx

just google it

Serkan Hekimoglu
A: 

To refresh the data from the jqGrid you can use

jQuery("#grid_id").trigger("reloadGrid");

Before refreshing you can change some parameters of jqGrid with respect of setGridParam like

jQuery("#grid_id").setGridParam({rowNum:10}).trigger("reloadGrid");

The list of parameters which you can change you will find in the table in the documentation (see column "Can be changed?").

Oleg