I am using jqgrid to display a very large data set. Since the query to get the total number of record count takes a long time. I am trying to see if I can fire a separate ajax call to get the total count and then update the recordcount and total page number after the grid is rendered with the first result data set.
I am able to update the total record count by using
|
1 |
$("#list").jqGrid('setGridParam', { recordtext: "View {0} - {1}" + " of " + datacount}).trigger("reloadGrid"); |
However I am not able to update the totalpage with the code below:
|
1 |
$("#list").jqGrid('setGridParam', { pgtext: "page {0} of {1}" + " of " + totalPage}).trigger("reloadGrid"); |
Anything wrong in the code above? Thank you so much for the help! I really appreciate it!
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top