Pager (Pager No)

How can i get the pager number in Data Grid i.e if i click on 2nd page, i want to know i have clicked on 2nd page. Can i get that value?
I have tried using "if(args.requestType == "paging")" but i just get the event, and nothing else.

1 Reply

TS Thavasianand Sankaranarayanan Syncfusion Team May 30, 2019 01:53 PM UTC

Hi Sayali, 

Greetings from Syncfusion support. 

You can get the current page number from the currentPage properties of Grid. 

Refer the below code example. 


methods: { 
     
    actionComplete:e => { 
      if(e.requestType == "paging"){ 
        console.log(e.currentPage); 
      } 
    } 



We have prepared simple sample in the following link. 


Regards, 
Thavasianand S. 


Loader.
Up arrow icon