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.
Unfortunately, activation email could not send to your email. Please try again.

Limit number of pages showing on grid

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 10:59 AM

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

.AllowPaging()    /*Paging Enabled*/ 
         .PageSettings(page=>page.PageCount(1)) 

Please refer below screenshot for output. 

 


Regards, 
Vignesh Natarajan 


Edmund Herbert
Replied On September 6, 2017 11:11 AM

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 03:04 AM

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. 

Regards, 
Manisankar Durai. 



CONFIRMATION

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.

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.

;