Closed akamud closed 9 years ago
There is a more flexible method available for CheckBoxListFor
- .DisableValues(expression)
.
It allows you to disable values conditionally based on the item in the data source. If all you want is to disable all checkboxes, simply write:
.DisabledValues(x => true)
Awesome, haven't noticed this one.
Thank you, you can close this.
There is no
CheckBoxListFor.Disabled(true)
, to me it looks very similar to RadioButtonsFromEnumFor, which hasDisabled
method.Is this doable?