We are using the GridRouteValues() to save the user's preferred page size for grids.
When the Export to Excel function is used with the All Pages option set to True, it sets the PageSize in the RouteValues to the total rows to be exported. This causes our saved user's page size to be set to that value. We don't want to save that PageSize when it's for the Export to Excel, but I can't see a way to distinguish that call to the controller from the others.
Any ideas?