admin管理员组文章数量:1336659
I have a kendo grid with several 1000's of rows. I want to display them as 1000 per page. Can any one please tell me how can I make the dropdown customized with the values like 1000, 5000, 10000 etc. and display number of rows based on it in javascript or JQuery. For now am setting the page size to 1000 in javascript, but when I change it to 20 or 10 in dropdown, I am unable to get the 1000 back!
Any help appreciated!
I have a kendo grid with several 1000's of rows. I want to display them as 1000 per page. Can any one please tell me how can I make the dropdown customized with the values like 1000, 5000, 10000 etc. and display number of rows based on it in javascript or JQuery. For now am setting the page size to 1000 in javascript, but when I change it to 20 or 10 in dropdown, I am unable to get the 1000 back!
Any help appreciated!
Share Improve this question asked May 7, 2014 at 20:37 ak17ak17 591 gold badge2 silver badges8 bronze badges2 Answers
Reset to default 5If you are using Javascript for kendogrid, add the following during your grid definition:
pageable: {
pageSize: 1000,
pageSizes: [1000, 5000, 10000]
}
You can try this:
pageable: {
pageSize: 10,
buttonCount: 10,
pageSizes: [5, 10, 20, 50, 100, 500]
},
本文标签: javascriptCustom values in kendo grid quotItems per pagequot dropdownStack Overflow
版权声明:本文标题:javascript - Custom values in kendo grid "Items per page" dropdown - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742419879a2471443.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论