문제

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!

도움이 되었습니까?

해결책

If 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]
},
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top