I have a piece of functionality that allows users to filter records based on their own status codes. In the menu, I have a custom filters section:
<h3>Custom Filters</h3>
<br />
<ul id="ui-ajax-tabs">
@{ Html.RenderAction("GetGroups", "Manage");}
</ul>
And my partial view looks like this:
@model IEnumerable<AllEngage.Model.Group>
@using AllEngage.Web.Helpers
@foreach (var group in Model)
{
<li>
<label for="@group.GroupName">@group.GroupName</label>
@Html.DropDownList("GroupItems", group.GroupItems.ToSelectListItems())
</li>
}
When an item is selected from a dropdownlist, I want an action method to fire in my controller:
[HttpGet]
public ActionResult Index(int page = 1, int groupFilterId = -1)
What would be the best way to go? Fire using json or perform a post back somehow?