This question is locked. New answers and comments are not allowed.
I'm working on a website that uses the Telerik MVC grid to display products.
Because I have to do some have calculations (the determine a product price) I only want the calculate the prices for the products currently displaying.
I use ajax to update the list (onDataBinding(e)) and send a parameter list to the controller with the current page (e.page), SortedName, SortedOrder and the page size (value 10).
This worked well until the client asked to make the page size changeable:
.Pageable(p => p.Style(GridPagerStyles.Numeric | GridPagerStyles.NextPreviousAndDropDown))
So now I want to know what the current selected page size is in the onDataBinding(e) JavaScript function. But this information is not present in the event parameter (at least I can't find it).
How do I determine the current selected page size?
Because I have to do some have calculations (the determine a product price) I only want the calculate the prices for the products currently displaying.
I use ajax to update the list (onDataBinding(e)) and send a parameter list to the controller with the current page (e.page), SortedName, SortedOrder and the page size (value 10).
This worked well until the client asked to make the page size changeable:
.Pageable(p => p.Style(GridPagerStyles.Numeric | GridPagerStyles.NextPreviousAndDropDown))
So now I want to know what the current selected page size is in the onDataBinding(e) JavaScript function. But this information is not present in the event parameter (at least I can't find it).
How do I determine the current selected page size?