The pageSizes: property of .kendoGrid() will only accept integer arrays.
I've tried finagling the dropdown after grid init like so:
but this doesn't seem to do anything.
Any help would be very... helpful. Thanks!
6 Answers, 1 is accepted
encourage you to vote for it here
In the meantime I've contacted them on this and they've provided me with a solution that seems to work:
Where "50" would be the size of your data source elements in the grid.
So ideally before you create your grid you would figure out the length of your data source, pass it into the pageSizes array that the grid takes in, bind to this event shown above and do a check to determine if the grid's datasource is showing all the elements and if so change the text to "All"
EDIT: You can also make "All" appear as an option in the pager drop down by doing the following
Is it possible to have a workaround ASP.NET MVC Razor?
You can use the Events() wrapper of the DataSource and bind to the change event and there execute the logic from the post below. If it does not help, send us a sample of what you have tried and we will be happy to take a look.Regards,
Grabbed the total from datasource.