Hi,
I'm trying to persist the current PageSize in a grid. To do so, I have a cookie with the previous session's PageSize in it. On the DataBound event for the grid, I fire the following routine (uses jquery.cookie.js):
This correctly resizes the grid to the value in the cookie. However, the grid pager's drop down list still shows the original PageSize value. How can I cause this to update?
I'm trying to persist the current PageSize in a grid. To do so, I have a cookie with the previous session's PageSize in it. On the DataBound event for the grid, I fire the following routine (uses jquery.cookie.js):
function onDataBoundBilling(e) { // Get cookie (if any). var cookiePageSize = JSON.parse($.cookie("billingPageSize")); // Push new value to PageSize. if ($.cookie('billingPageSize')) { var grid = $("#billingGrid").data("kendoGrid"); grid.dataSource.pageSize(parseInt(cookiePageSize)); }}This correctly resizes the grid to the value in the cookie. However, the grid pager's drop down list still shows the original PageSize value. How can I cause this to update?
