Author Topic: Remote pagination showing message NaN at footer .  (Read 2141 times)

ketan

  • Newbie
  • *
  • Posts: 1
    • View Profile
Remote pagination showing message NaN at footer .
« on: June 08, 2017, 10:37:53 am »
Hello Everyone ,
I am using PQGrig to display multiple records for that I am using pagination of remote type . means pageModel ={type:'remote'} .
problem is when I am using this type of page model I am getting message at footer - 'page [ 1 ] of NaN' . What is this NaN and how should display proper message . I don't want to show NaN at my Grid footer .

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Remote pagination showing message NaN at footer .
« Reply #1 on: June 08, 2017, 11:39:21 am »
Your remote script should return total number of records as totalRecords property in the JSON data.

Sample JSON data with remote pagination:

https://paramquery.com/pro/invoice/paging?pq_datatype=JSON&pq_curpage=3&pq_rpp=20&_=1496902075716