We're trying to keep track of a users preferred page size and set that at page load when they return to our site. This works fine when they set the page size to an amount less than the current number of records. But when a user has 25 records and sets the page size to 50, it sets it to 25. 50 doesn't get passed to the code behind PageSizeChanged method, instead 25 does. I've looked into the control and the JS on the change button is:
var cpsi = document.getElementById("grdResults__ChangePageSizeTextBox"); if ( cpsi.value > 12 || cpsi.value == 12){cpsi.value=Math.min(12,12);return false;};
Clearly this amount is being adjusted client side if it is greater than the current record count. The question is can I turn this off? It's a pain if the user tries to set the max to 50, it gets set to 25, then they add a new record and it's on the next page.
Thanks for your help.
var cpsi = document.getElementById("grdResults__ChangePageSizeTextBox"); if ( cpsi.value > 12 || cpsi.value == 12){cpsi.value=Math.min(12,12);return false;};
Clearly this amount is being adjusted client side if it is greater than the current record count. The question is can I turn this off? It's a pain if the user tries to set the max to 50, it gets set to 25, then they add a new record and it's on the next page.
Thanks for your help.