Radiobuttonfor For A List Of Objects Mvc
I have a Model : public class Period { public int Id { get; set; } public bool Selected { get; set; } public string DisplayText { get; set; } public string PickerFo
Solution 1:
Simply continue the code of your foreach:
@foreach (Period period in Model.HistoricViewModel.AllPeriodes)
{
Html.RadioButtonFor(m => m.HistoricViewModel.SelectedPeriod.Id, period.Id);
Html.LabelFor(m => m.HistoricViewModel.SelectedPeriod.DisplayText);
}
Post a Comment for "Radiobuttonfor For A List Of Objects Mvc"