Is there a way for me to edit the PageSizeList Data Type and keep the functionality
Helllo Karen,
The same question is also found on the following page. I answered to your question there. https://www.infragistics.com/community/forums/f/ignite-ui-for-asp-net-mvc/121789/editing-page-list-data-type
Thank you,
Yuki
You can try these changes in your code to edit Page Size list
public ActionResult Grid() { schoolEntities db = new schoolEntities(); List<Student> result = db.Students.ToList(); // I can't use pagesizelist here, taken from the view ViewBag.pageSize = int.Parse(pagesizelist.SelectedValue); return View(result); }and relating view:
...@Html.DropDownList("Page", new SelectList(new Dictionary<string, int> { { "10", 10 }, { "20", 20 }, { "50", 50 } }, "Key", "Value"), new { id = "pagesizelist" })
<div class="code-cut"> @Html.Grid(Model).Columns(Columns =>{ Columns.Add(c => c.StudentID).Titled("Id").Filterable(true); Columns.Add(c => c.LastName).Titled("Last name").Filterable(true); Columns.Add(c => c.FirstName).Titled("First name").Filterable(true); Columns.Add(c => c.EnrollmentDate).Titled("Enrollment date").Filterable(true); Columns.Add()...}).WithPaging(ViewBag.pageSize).Sortable(true)
Hope this helps!
Ben Martin
For gaming keyboards, you’ll want to look for one that is durable and has good key response. The Razer BlackWidow Elite is one of the best gaming keyboards on the market. It’s built with durable switches and offers great response time. Plus, it has a comfortable wrist rest and customizable lighting. https://intentgaming.com/best-wifi-card-for-gaming/
Are you looking for dissertation writing service london?
When selecting a car shipping company, consider their experience and track record. Look for companies with a proven history of successful car shipments and positive customer reviews. Your car is a valuable asset, so it's crucial to choose a company that you can trust. https://www.youtube.com/watch?v=zCwBmfaNGJM