Is there a way to edit PageSizeList Data Type
cause I wanna use default PageSizeList and just add All for displaying All Records
Helllo Karen,
PageSizeList only accepts integer values so that we cannot have a value of other type. In order to have an option to show all the record on the dropdown list, you can calculate the total number of records and add it to PageSIzeList. Below is an example of it. Would you check if this achieves what you are looking for?
GridModel gridModel = new GridModel(); gridModel.ID = "grid1"; gridModel.DataSource = this.Books.AsQueryable(); var paging = new GridPaging(); // Configure PageSizeList paging.PageSizeList.Add(50); paging.PageSizeList.Add(100); paging.PageSizeList.Add(this.Books.Count); // Get the number of all the records gridModel.Features.Add(paging); return View(gridModel);
Oh thanks already did that though..
Thank you for your quick response. If you have any other question, please let me know.
Is there a way I can transfer the location of Page Link to the top beside Page size dropdown?
There is no API to move the pager menu to the designated area. However, you could follow the approach suggested on the below forum post.
https://www.infragistics.com/community/forums/f/ignite-ui-for-jquery/86389/iggrid-pager-location