Closed markusgud closed 7 years ago
I am trying to make all radio buttons disabled and I tried the following code which works OK for CheckBoxListFor:
var rbl = f.FormGroup().RadioButtonListFor(m => m.Value, Model.ListItems, item => item.Value, item => item.Text).ShowValidationMessage(true); if (!string.IsNullOrEmpty(Model.Value)) { rbl = rbl.SelectedValues(items => items.Value==Model.Value); rbl = rbl.DisabledValues(items => true); // set all as disabled }
Could this be a bug?
Indeed it was a bug. Fixed it. Please get latest.
Excellent, works well now. Thank you for your quick reaction :-)
I am trying to make all radio buttons disabled and I tried the following code which works OK for CheckBoxListFor:
Could this be a bug?