achan1989
achan1989

Reputation: 101

load data from server only once using JQGrid and then use client side pagination,sorting etc

I have load data using JQGrid with parameter's datatype:'json',loadonce:true. But pagination getting disabled. I need to load data from server only one time and after that want to apply client side pagination and all.

Upvotes: 0

Views: 252

Answers (1)

pd1
pd1

Reputation: 36

As far as I understand, you need to load data from server using datatype : json. you can work on the below code and set the parameters as you require. Below code will be used to reload data from server side and show specific page. Also you can refer the following link for further information jqgrid trigger event

$("#mygrid").setGridParam({datatype:json}).trigger("reloadGrid",[{page:1}]);

Upvotes: 1

Related Questions