I'm working on a page where the multiple radio button groups are loaded from code. It can 2,3,4.... and so each radio button group can contain one or more radio button as shown in the pic.
The workflow is user selects a radio button and the grid below filters the result as more and more radio buttons are clicked, the grid results gets reduced until the user gets what he wants.
I need to capture all the radio buttons that were clicked in the Controller action.
public ActionResult index(IEnumerable<string> selectedRadioButtons)
{
}
This doesn't seem to work. Any idea how I can implement this.
Model
public class Person
{
public string Name {get;set;}
public IEnumerable<FavoriteGroup> Favorites {get;set;}
}
public class FavoriteGroup
{
public string GroupName {get;set;}
public IEnumerable<KeyValuePair> Options {get;set;}
}
