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. Image for the cookie policy date

Set page size options on EJ2 ASP.NET Core Grid

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>
<e-grid-columns>
 ...
</e-grid-columns>
</ejs-grid>

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

Cheers,

Jake

3 Replies

MF Mohammed Farook J Syncfusion Team 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> 
    <e-grid-columns> 
        . . . 
</ejs-grid> 
 
 
 
 
 
 
 
. 
 
 
 
 
 
 
Please get back to us if you need further assistance from us. 
 
Regards, 
J Mohammed Farook 



AW Abdul Wahab May 8, 2020 01:13 PM UTC

I want same thing in Syncfusion MVC EJS Grid



RR Rajapandi Ravi Syncfusion Team May 8, 2020 01:32 PM UTC

Hi Abdul, 

To customize default values of pager dropdown, you need to define in PageSizes property as array of strings. For your reference we have shared the EJ2 MVC documentation. Please refer the below documentation for more information. 


Regards, 
Rajapandi R 


Loader.
Up arrow icon