Author Topic: Reactjs server side pagination issue  (Read 431 times)

Punit

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 46
    • View Profile
Reactjs server side pagination issue
« on: January 31, 2023, 05:47:21 pm »
Hello Team,

I am using server-side pagination in the PQ grid with reactjs. when i click next button (pagination) getting error 
Uncaught TypeError: Cannot read properties of undefined (reading 'bind')


refer this link : https://paramquery.com/pro/api#method-refreshCM

please let as know how to solve issue in reactjs

 


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Reactjs server side pagination issue
« Reply #1 on: February 01, 2023, 07:08:12 am »
I don't see how refreshCM is related to remote paging in your case.

Can you share a small test case on stackblitz so that I can look into it.

PS: Just a guess, try to pass reactive: false to the grid options to see if it makes any difference.

Punit

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: Reactjs server side pagination issue
« Reply #2 on: February 01, 2023, 04:47:52 pm »
Hello,

Thanks for reply,

I try to pass reactive: false to the grid options and try other options  but server-side pagination not working in reactjs

Please provide any stackblitz link  to reactjs with pqgrid server-side pagination example 

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Reactjs server side pagination issue
« Reply #3 on: February 02, 2023, 01:49:26 pm »
Please check this React example for remote paging: https://stackblitz.com/edit/paramquery-react-remote-paging?file=index.js,index.html

And refer to this example https://paramquery.com/pro/demos/paging for remote script.