I have a jqgrid with pager buttons that I want to customize and I would like to keep the buttons (next, forward, first and last) from being disabled once the grid is binded (if my initial query only fills one page, the buttons get disabled). I have tried the following after reloadGrid but it's not working.
$("#MyGrid pgbuttons").removeClass("ui-state-disabled")
Any help is appreciated!
If you need to have the "Next" and the "Last" buttons of the pager enabled just because you don't know the number of records and the number of pages which you has you can do following:
total
value at least one higher as the current requested page. For example:"page":1, "total":2
.pgtext
andrecordtext
options of jqGrid (see the documentation). For examplepgtext : "Page {0} of ..."
andrecordtext: "View {0} - {1} of ..."
or justpgtext : "Page {0}"
andrecordtext: "View {0} - {1}"