Get current page of a grid.

Good morning,

I'm trying to get the current page of a grid <ejs-grid> but every time i do it gives me an undefined value. I'm sure that there has to be an easy way to get this. So i need some help with this situation.

Thank you. Regards.


3 Replies

RS Rajapandiyan Settu Syncfusion Team September 10, 2021 04:21 AM UTC

Hi David, 
 
Thanks for contacting Syncfusion support. 
 
By using currentPage property of pageSettings, you can get the current page in the Grid. 
 
 
 
[App.vue] 
 
 
    btnClick: function (args) { 
      var grid = this.$refs.grid.$el.ej2_instances[0]; 
      var currentPage = grid.pageSettings.currentPage; 
      alert(currentPage); 
    } 
 
 
 
 
Please get back to us if you need further assistance with this. 
 
Regards, 
Rajapandiyan S 



DA David replied to Rajapandiyan Settu September 10, 2021 07:06 AM UTC

Hello again,

Thank you so much for the support. I was trying like that but missed something in the code badly. 

Have a great day. Regards.



SK Sujith Kumar Rajkumar Syncfusion Team September 13, 2021 05:27 AM UTC

Hi David, 
 
You’re welcome. We are glad to hear that your query has been resolved. 
 
Regards, 
Sujith R 


Loader.
Up arrow icon