Author Topic: 2.03 - dataMode: getUrl - Accessing rPP and curPage  (Read 4021 times)

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
2.03 - dataMode: getUrl - Accessing rPP and curPage
« 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.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: 2.03 - dataMode: getUrl - Accessing rPP and curPage
« Reply #1 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.

« Last Edit: January 21, 2014, 10:25:17 pm by paramquery »

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Re: 2.03 - dataMode: getUrl - Accessing rPP and curPage
« Reply #2 on: January 21, 2014, 09:50:02 pm »
Thank you.  This works.
« Last Edit: January 21, 2014, 09:53:13 pm by Webauthor »