ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Webauthor on January 21, 2014, 10:14:58 am

Title: 2.03 - dataMode: getUrl - Accessing rPP and curPage
Post 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.

Title: Re: 2.03 - dataMode: getUrl - Accessing rPP and curPage
Post by: paramvir on January 21, 2014, 10:36:57 am
It can be accessed as

Code: [Select]
//$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.

Title: Re: 2.03 - dataMode: getUrl - Accessing rPP and curPage
Post by: Webauthor on January 21, 2014, 09:50:02 pm
Thank you.  This works.