CheckboxList
It is declared like this:@(Html.Awe().CheckboxList(new CheckboxListOpt
{
Name = "Meals",
Url = Url.Action("GetMealsImgByCateg", "Data")
}))
CheckboxListOpt
CheckboxList optionsAutoSelectFirst | Auto select first item |
CssClass | Css class |
DataFunc | JS function to get data from; when set url is ignored |
Enabled | Enabled |
FieldAttr | Html attributes for the field element |
InputAttr | Html attributes for the input element |
ItemFunc | JS func used to render the selectable items |
Load | Autoload on document ready (default true) |
Name | The name of the control, For editors also the name of the form field and the System.Web.Mvc.ViewDataDictionary key that is used to look up the value |
ParameterFunc | Set the name of a js function which will return parameters to be sent to the server on each load |
Parameters | Additional parameters to send on load |
Parents | When a parent element changes value the child will reload and get the parent value as a parameter |
Prefix | Set Prefix for the html id (use to achieve unique ids for elements with same name) |
Url | Url to get data from |
Value | The value of the element. If this value is null, the value of the element is retrieved from the System.Web.Mvc.ViewDataDictionary object. If no value exists there, the value is retrieved from the System.Web.Mvc.ModelStateDictionary object. |
Comments