I am having the same issue as this question.
I have created a filter that is supposed to work alongside a WebGrid. The filter works for the first page, but if you try to go to a different page or sort the results, the filter is lost. I followed the suggestion in the previous question to change the method to GET, but instead of the target getting updated, it disappears from the page.
Grid call inside a div "Grid":
var grid = new WebGrid(Model, ajaxUpdateContainerId: "Grid", rowsPerPage: 20);
Filter form:
@using (Ajax.BeginForm("Action", new { filter = "filter" }, new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "Grid", HttpMethod = "Get" }))
If "filter" is set in the Action, I return the PartialView of the grid instead of the full View.
Firebug is showing me that the correct HTML is getting sent in the response, but for whatever reason it's not getting inserted into the Grid div.
Any suggestions would be appreciated!
Edit: My current workaround is to use an HTML form instead of AJAX, but I would like to stick to AJAX if possible.