Debaprasad Jana
Debaprasad Jana

Reputation: 185

how to disable rownum property of jqgrid table?

the rownum property of jqgrid by default takes 20. now i have json data of length 50. now after loading it shows View 1 - 20 of 50 once i reach 20 by scrolling down it brings the next 20 records and shows View 1 - 4 of 50 and hence forth. i want to display View 1 - 50 of 50 this i can do by setting rowNum:data.length(). but the data is coming as part of ajax call . hence rowNum property gets set before data is actually fetched. setting the rowNum after grid is loaded does not serve the purpose. As i have fetched all the data at one shot i don't want this repeated ajax call. hence i want to disable the rowNum property. plz help...

Upvotes: 1

Views: 2883

Answers (1)

Anthony Grist
Anthony Grist

Reputation: 38345

The options page on the jqGrid wiki says:

Set this parameter to -1 (unlimited) to disable this checking.

It is, however, struck out so may no longer be correct (or may have never been correct). Seems like it's worth a try, though.

Upvotes: 2

Related Questions