Deetuessvig
New Member
I'm having problems with the HtmlHelper, RadioButtonFor and an enum in my model. I have a strongly typed view, and I want the checkboxes to toggle my enum property.\[code\]Enum.cspublic enum Values{ Value1, Value2}\[/code\]\[code\]Model.cspublic class Model{ public Values MyProp{ get; set; };\[/code\]\[code\][email protected](model => model.MyPropi, Values.Values1)\[/code\]\[code\]Controller.cspublic ActionResult WizardFirstStep(){ var model = new Model(); return View(model);}\[/code\]If I set the MyProperty value in the controller, the RadioButton is checked as expected. But after a post to the next wizard step, which gets the model as parameter, the property isn't set.If it will help you to understand what I mean: If it would be C# and WPF I would use a IValueConverter.btw: I use a HtmlHelper.ActionLink to get the model to the controller.Thanks in advance