Combobox

It is declared like this:
@(Html.Awe().Combobox(new ComboboxOpt { 
    Name = "AllMealsCombo",
    Value = "combo value",
    Url = Url.Action("GetMealsImg", "Data")
}))

ComboboxOpt

Combobox options
AutoSelectFirstAuto select first item
CaptionCaption when no item is selected
CaptionFuncJS func used to render the caption (selected value)
ClearBtnClear button
CollapseNodesMake tree nodes collapsible
CssClassCss class
DataFuncJS function to get data from; when set url is ignored
EnabledEnabled
FieldAttrHtml attributes for the field element
InputAttrHtml attributes for the input element
ItemFuncJS func used to render the selectable items
LoadAutoload on document ready (default true)
NameThe 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
NoSelectCloseDon't close dropdown on item select
ParameterFuncSet the name of a js function which will return parameters to be sent to the server on each load
ParametersAdditional parameters to send on load
ParentsWhen a parent element changes value the child will reload and get the parent value as a parameter
PopupMaxHeightMax popup height
PopupMaxWidthMax popup width
PopupMinWidthMin popup width
PrefixSet Prefix for the html id (use to achieve unique ids for elements with same name)
SearchFuncSearch func options
SubmenuRender tree data as submenus
UrlUrl to get data from
ValueThe 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
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our cookie policy and privacy policy .