I am having a Kendo UI grid showing more than 1000 data. I also have a dropdown list for different page size - 15, 25, 50, 100. On selection of a page size, how can we change the page size of Kendo UI grid?
相关问题
- Foreign key column sorting
- Kendo UI bind drop down value from PopupEditor
- Kendo mvc grid InLine Edit Mode DateTimePicker Tem
- How to change color of row based on particular col
- Kendo UI for MVC Grid How do I hide the ID column
相关文章
- Kendo Ui Dropdownlist Set Visible via Javascript
- How to change view date dynamically (which is filt
- Kendo DropDownList Shows DataValueField Prior to D
- Kendo UI Datasource - Filter on releated data
- Kendo UI Grid Refesh on Dropdown Selection
- How to bind kendo mvc ui dropdownlist dynamically
- KendoUI integration into Durandal JS
- How to make a Pie Chart Aggregate the Data Source?
Here's the latest using ASP.NET MVC Helper
To expand on Rick Glos' answer:
You can set the Pageable PageSizes to an array of generic objects, so you can have an "All" option without having to set pageSizes in JavaScript.
http://docs.kendoui.com/api/wrappers/php/Kendo/UI/GridPageable
You can set the page size in the combobox change event. (Also see JSBin example.)
Its also built into the latest version of the grid by doing the following in js
http://docs.kendoui.com/api/web/pager
Rick has told it in a good way a more explained if some one misses where is it to be done here is a code piece to know where is it to be done with a screen short snap
.Pageable(pager => pager.PageSizes(new int[] {5,10,15,20,30,50,100}))
Hope this helps