We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

I am using PagerComponent in react js. I want to redirect once page number is clicked.

Hello Syncfusion,


I am using PagerComponent to add pagination. Pager is added properly, Now I want to redirect once the page number of pager is clicked and get clicked page number.

So is there any event to perform the same.


Thanks

Yogesh Patil


6 Replies 1 reply marked as answer

SG Suganya Gopinath Syncfusion Team October 17, 2022 04:51 AM

Hi Yogesh Patil,

We regret for the delayed response. 

We have forwarded to the concern team; the respective team will update on Oct 18th.

Regards,

Suganya Gopinath. 



VB Vinitha Balasubramanian Syncfusion Team October 18, 2022 12:56 PM

Hi Yogesh Patil,


Greetings from Syncfusion support.


Query : I am using PagerComponent in react js. I want to redirect once page number is clicked.


From your query, we suggest to use the click event of the Pager component to resolve your reported problem.


Documentation : https://ej2.syncfusion.com/react/documentation/api/pager/#click


Regards,

Vinitha Balasubramanian

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.



YP Yogesh Patil October 20, 2022 12:23 AM

Thanks for reply,


Can you please demo with some sample code. The line you mentioned is not clear how to use it.



VB Vinitha Balasubramanian Syncfusion Team October 20, 2022 09:04 AM

Hi Yogesh Patil,


Thanks for your update.


From your update, we have prepared a simple sample with click event of pagerComponent. Kindly refer the below sample for your reference.


Sample link : https://stackblitz.com/edit/react-hxlsw2-2pxatr?file=index.js


Help Documentation : https://ej2.syncfusion.com/react/documentation/api/pager/#click


Please get back to us if you need further assistance.


Regards,

Vinitha Balasubramanian

If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.


Marked as answer

YP Yogesh Patil November 30, 2022 01:09 AM

Thank you for update,

It works for me.


Thanks,

Yogesh



SG Suganya Gopinath Syncfusion Team December 2, 2022 12:03 AM

Yogesh,

We are glad that the provided sample worked to solve the issue. Please get back to us for further assistance.

We are marking this ticket as solved. 

Regards,

Suganya Gopinath.


Loader.
Live Chat Icon For mobile
Up arrow icon