DropDownList

Example

Razor
<kendo-dropdownlist>
    <datasource></datasource>
    <fixed-group-template></fixed-group-template>
    <footer-template></footer-template>
    <group-template></group-template>
    <header-template></header-template>
    <item-template></item-template>
    <label />
    <messages />
    <no-data-template></no-data-template>
    <popup></popup>
    <popup-animation></popup-animation>
    <virtual />
</kendo-dropdownlist>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
adaptive-modeAdaptiveModeSpecifies the adaptive rendering of the component.
as-moduleBoolean
auto-bindBooleanControls whether to bind the widget to the data source on initialization.
auto-widthBooleanIf set to true, the widget automatically adjusts the width of the popup element and does not wrap up the item label.
bind-toIEnumerable<Object>The collection of data items which the data source contains.
cascade-fromStringUse it to set the Id of the parent DropDownList widget.Help topic showing how cascading functionality works
cascade-from-fieldStringDefines the field to be used to filter the data source. If not defined the parent's dataValueField option will be used.Help topic showing how cascading functionality works
cascade-from-parent-fieldStringDefines the parent field to be used to retain value from. This value will be used further to filter the dataSource. If not defined the value from the parent's dataValueField will be used.
datasource-idStringThe data source id
data-text-fieldStringThe field of the data item that provides the text content of the list items. The widget will filter the data source based on this field.
data-value-fieldStringThe field of the data item that provides the value of the widget.
delayDoubleSpecifies the delay in milliseconds before the search-text typed by the end user is sent for filtering.
enableBooleanIf set to false the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
enforce-min-lengthBooleanIf set to true the widget will not show all items when the text of the search input cleared. By default the widget shows all items when the text of the search input is cleared. Works in conjunction with minLength.
fill-modeFillModeSets a value controlling how the color is applied.
filterFilterTypeWhen filtering is enabled, allows custom title to be defined for the filter input element.
filter-titleStringWhen filtering is enabled, allows custom title to be defined for the filter input element.
fixed-group-templateStringThe template used to render the fixed header group. By default the widget displays only the value of the current group.
fixed-group-template-handlerStringThe template used to render the fixed header group. By default the widget displays only the value of the current group.
fixed-group-template-idStringThe template used to render the fixed header group. By default the widget displays only the value of the current group.
fixed-group-template-viewIHtmlContentThe template used to render the fixed header group. By default the widget displays only the value of the current group.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
footer-templateStringThe template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
footer-template-handlerStringThe template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
footer-template-idStringThe template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
footer-template-viewIHtmlContentThe template used to render the footer template. The footer template receives the widget itself as a part of the data argument. Use the widget fields directly in the template.
forModelExpressionAn expression to be evaluated against the current model.
group-templateStringThe template used to render the groups. By default the widget displays only the value of the group.
group-template-handlerStringThe template used to render the groups. By default the widget displays only the value of the group.
group-template-idStringThe template used to render the groups. By default the widget displays only the value of the group.
group-template-viewIHtmlContentThe template used to render the groups. By default the widget displays only the value of the group.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
has-client-componentBoolean
header-templateStringSpecifies a static HTML content, which will be rendered as a header of the popup element.
header-template-handlerStringSpecifies a static HTML content, which will be rendered as a header of the popup element.
header-template-idStringSpecifies a static HTML content, which will be rendered as a header of the popup element.
header-template-viewIHtmlContentSpecifies a static HTML content, which will be rendered as a header of the popup element.
heightDoubleThe height of the suggestion popup in pixels. The default value is 200 pixels.
ignore-caseBooleanIf set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
indexDoubleThe index of the initially selected item. The index is 0 based.
min-lengthDoubleThe minimum number of characters the user must type before a filter is performed. Set to higher value than 1 if the search could match a lot of items.
no-data-templateStringThe template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
no-data-template-handlerStringThe template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
no-data-template-idStringThe template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
no-data-template-viewIHtmlContentThe template used to render the "no data" template, which will be displayed if no results are found or the underlying data source is empty. The noData template receives the widget itself as a part of the data argument. The template will be evaluated on every widget data bound.
on-cascadeStringFired when the value of the widget is changed via API or user interaction.
on-changeStringFired when the value of the widget is changed by the user. As of 2015 Q3 SP1 cascading widget will trigger change event when its value is changed due to parent update.The event handler function context (available via the this keyword) will be set to the widget instance.
on-closeStringFired when the popup of the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.
on-data-boundStringFired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.
on-filteringStringFired when the widget is about to filter the data source.The event handler function context (available via the this keyword) will be set to the widget instance.
on-openStringFired when the popup of the widget is opened by the user.The event handler function context (available via the this keyword) will be set to the widget instance.
on-selectStringFired when an item from the popup is selected by the user either with mouse/tap or with keyboard navigation.
option-labelStringDefine the text of the default empty item. If the value is an object, then the widget will use it as a valid data item. Note that the optionLabel will not be available if the widget is empty.
option-label-templateStringThe template used to render the option label. Use optionLabelTemplate if you want to customize the markup of the optionLabel.
option-label-template-handlerStringThe template used to render the option label. Use optionLabelTemplate if you want to customize the markup of the optionLabel.
option-label-template-idStringThe template used to render the option label. Use optionLabelTemplate if you want to customize the markup of the optionLabel.
option-label-template-viewIHtmlContentThe template used to render the option label. Use optionLabelTemplate if you want to customize the markup of the optionLabel.
roundedRoundedSets a value controlling the border radius.
sanitize-idBoolean
script-attributesIDictionary<String,Object>
sizeComponentSizeSets the size of the component.
templateStringThe template used to render the items. By default the widget displays only the text of the data item (configured via dataTextField).
template-handlerStringThe template used to render the items. By default the widget displays only the text of the data item (configured via dataTextField).
template-idStringThe template used to render the items. By default the widget displays only the text of the data item (configured via dataTextField).
template-viewIHtmlContentThe template used to render the items. By default the widget displays only the text of the data item (configured via dataTextField).
textStringThe text of the widget used when the autoBind is set to false.
valueStringThe valueTemplate used to render the selected value. By default the widget displays only the text of the data item (configured via dataTextField).
value-primitiveBooleanSpecifies the value binding behavior for the widget when the initial model value is null. If set to true, the View-Model field will be updated with the primitive value of the selected item's field (defined in the dataValueField option).if set to false, the View-Model field will be updated with the selected item - the entire non-primitive object.
value-templateStringThe valueTemplate used to render the selected value. By default the widget displays only the text of the data item (configured via dataTextField).
value-template-handlerStringThe valueTemplate used to render the selected value. By default the widget displays only the text of the data item (configured via dataTextField).
value-template-idStringThe valueTemplate used to render the selected value. By default the widget displays only the text of the data item (configured via dataTextField).
value-template-viewIHtmlContentThe valueTemplate used to render the selected value. By default the widget displays only the text of the data item (configured via dataTextField).
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support