ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: Webauthor on January 21, 2014, 10:14:58 am
-
In 2.03, how do we access the curPage and rPP options in getUrl? I see that the object for getUrl does not have pageModel.
-
It can be accessed as
//$grid is reference to the grid container i.e., $( "selector" ) or $(this)
var pageModel = $grid.pqGrid( "option", "pageModel" );
var curPage = pageModel.curPage;
var rPP = pageModel.rPP;
though it could be more convenient to access pageModel directly from ui argument.
-
Thank you. This works.