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

Set page size options on EJ2 ASP.NET Core Grid

Thread ID:





141033 Nov 20,2018 06:13 AM UTC Nov 20,2018 09:13 AM UTC ASP.NET Core - EJ 2 1
Tags: DataGrid
Jake Adams
Asked On November 20, 2018 06:13 AM UTC

Hey all, I'm struggling with setting up page sizes on a grid set up with paging. I have the grid defined as below but I cannot seem to find an option to define page sizes, I'm only able to use the default ones (All, 5, 10, 12, 20.)

<ejs-grid id="grd" allowPaging="true" allowSorting="true" dataBound="grd_databound">
<e-grid-pagesettings pageSizes="true"></e-grid-pagesettings>

Can someone please show me what I'm doing wrong because I'm at a loss!



Mohammed Farook J [Syncfusion]
Replied On November 20, 2018 09:13 AM UTC

Hi Jake, 
Thanks for contacting Syncfusion support. 
You can customize the grid page size by using pageizes property.  Please find the UG documentation for your reference 
<ejs-grid id="Grid" dataSource=@ViewBag.DataSource allowPaging="true">  
<e-grid-pagesettings pageSizes="@(new string[] { "5", "10" , "All" })"></e-grid-pagesettings> 
        . . . 
Please get back to us if you need further assistance from us. 
J Mohammed Farook 


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

Live Chat Icon