ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Punit on January 31, 2023, 05:47:21 pm

Title: Reactjs server side pagination issue
Post by: Punit 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

 

Title: Re: Reactjs server side pagination issue
Post by: paramvir 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.
Title: Re: Reactjs server side pagination issue
Post by: Punit 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 
Title: Re: Reactjs server side pagination issue
Post by: paramvir 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.