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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Limit number of pages showing on grid

Thread ID:





132488 Sep 5,2017 07:42 AM UTC Sep 7,2017 07:04 AM UTC ASP.NET Core 3
Tags: Grid
Edmund Herbert
Asked On September 5, 2017 07:42 AM UTC

Hi Guys,

How do I limit the number of pages showing on grid in Core 2.0 mvc grid control

Thanks in advance

Edmund Herbert

Vignesh Natarajan [Syncfusion]
Replied On September 6, 2017 02:59 PM UTC

Hi Edmund, 

Thanks for using Syncfusion products. 

We have analyzed your requirement and it can be achieved by using page-count property of e-page-settings. Please refer below code snippet  

        <e-page-settings page-count="1"></e-page-settings> 
In case, you use razor view please refer the below code snippet 

.AllowPaging()    /*Paging Enabled*/ 

Please refer below screenshot for output. 


Vignesh Natarajan 

Edmund Herbert
Replied On September 6, 2017 03:11 PM UTC

Hi I am using asp.net core 2 and I want to limit the number of rows in grid that show in page

Mani Sankar Durai [Syncfusion]
Replied On September 7, 2017 07:04 AM UTC

Hi Edmund, 

We have checked your query and to change the page size in grid we suggest you to use page-size property of e-page-settings in grid. 
Refer the code example 
<e-page-settings page-size="5"></e-page-settings> 

Also if you want to set the page size dynamically refer the following code example 
$("#Grid").ejGrid({ "pageSettings": { pageSize:1 } }); 

Note: Here #Grid is the ID of the grid. 
We have also prepared a sample based on changing the page size dynamically on a button click that can be downloaded from the below link 
Refer the API link. 

Please let us know if you need further assistance. 

Manisankar Durai. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon