This question is locked. New answers and comments are not allowed.
I have an ajax bound grid. I can set initial parameters like this:
This works fine. I can hit the refresh button and the GridCommand settings get submitted from the page loading action, thus keeping the grid settings.
I now need to modify the parent action that returns the View containing the grid configuration. I added a couple of optional parameters to it. This simple and (should be innocent) change prevents the RouteData.Values from being posted on first page load. I can use the filter or sorting ok, but as soon as I hit refresh all changes are lost. The values are just not being posted - the GridCommand object contains default values. Please help.
Thank you.
Alex
RouteData.Values[gridName + GridUrlParameters.PageSize] = value;
This works fine. I can hit the refresh button and the GridCommand settings get submitted from the page loading action, thus keeping the grid settings.
I now need to modify the parent action that returns the View containing the grid configuration. I added a couple of optional parameters to it. This simple and (should be innocent) change prevents the RouteData.Values from being posted on first page load. I can use the filter or sorting ok, but as soon as I hit refresh all changes are lost. The values are just not being posted - the GridCommand object contains default values. Please help.
Thank you.
Alex