我正在爲JQGrid(使用MVC4)實現服務器端分頁。我能夠做到這一點。我沒有使用JQGrid的尋呼機選項。相反,我使用自定義尋呼機實現。爲此,我需要獲取服務器返回的總頁數。頁面計數在jqgrid與服務器端分頁
我曾嘗試以下:
grid.getGridParam('lastpage') -- always returns 1, which makes sense as I am returning only one page contents to the grid
grid.getGridParam('total') -- I tried this because I was setting this value in the controller, but it is returning null
grid.getGridParam('records') -- always returns 10, my page size.