Combobox
The Combobox can be used to select a value from the dropdown or to manually enter a string value. It has similar features to all other Awesome select editors.
It can get data from the server or from the client by setting DataFunc to a js function.
It can get data from the server or from the client by setting DataFunc to a js function.
Basic usage
Basic Combobox, get data for the select options from the server, it has an initial combo value,
if it its value would match any of the option's Key property, the option's content would be displayed instead.
Content value
By default when selecting an item from the dropdown the item's Content will be set in the textbox, and the Key will be set as value in the component's hidden value input,
we can set UseContentValue to use the item Content instead of the Key.
Set value from the get data action
Value of the combobox can be set from the action that returns the data, so each time the combobox gets you can change its value.
In this demo we're using this to select the 2nd item in the child dropdown when it loads.
The child dropdown will load each time the value of the parent changes (cascade).
The same feature applies to other select editors (DropdownList, RadioButtonList, etc.).
The same feature applies to other select editors (DropdownList, RadioButtonList, etc.).
Comments