MultiSelectTagHelper

Example

Razor
<kendo-multiselect>
    <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>
    <prefix-options></prefix-options>
    <suffix-options></suffix-options>
    <virtual />
</kendo-multiselect>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
adaptive-modeAdaptiveModeSpecifies the adaptive rendering of the component.
adaptive-subtitleStringAllows customization of the subtitle's text in the adaptive view of the component.
adaptive-titleStringAllows customization of the title's text in the adaptive view of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
auto-bindBooleanControls whether to bind the widget to the data source on initialization.
auto-closeBooleanControls whether to close the widget suggestion list on item selection.
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.
clear-buttonBooleanUnless this options is set to false, a button will appear when hovering the widget. Clicking that button will reset the widget's value and will trigger the change event.
datasource-idStringThe data source id
data-text-fieldStringThe field of the data item used when searching for suggestions. This is the text that will be displayed in the list of matched results.
data-value-fieldStringThe field of the data item used when searching for suggestions. This is the value that will be displayed in the list of matched results.
delayDoubleSpecifies the delay in milliseconds after which the MultiSelect will start filtering dataSource.
down-arrowBooleanConfigures MultiSelect to render a down arrow that opens and closes its popup.
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.
filterFilterTypeThe filtering method used to determine the suggestions for the current value.
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. This option expects the name of a JavaScript function that will be called to return the template.
forModelExpressionAn expression to be evaluated against the current model.
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.
fixed-group-template-idStringThe template used to render the fixed header group. By default the widget displays only the value of the current group. This option expects the ID of the script element that contains the template.
fixed-group-template-viewIHtmlContentThe template used to render the fixed header group. By default the widget displays only the value of the current group. This option expects the instance containing the created HTML.
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. This option expects the name of a JavaScript function that will be called to return 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. This option expects the ID of the script element that contains 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. This option expects the instance containing the created HTML.
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. This option expects the name of a JavaScript function that will be called to return the template.
group-template-idStringThe template used to render the groups. By default the widget displays only the value of the group. This option expects the ID of the script element that contains the template.
group-template-viewIHtmlContentThe template used to render the groups. By default the widget displays only the value of the group. This option expects the instance containing the created HTML.
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. This option expects the name of a JavaScript function that will be called to return the template.
header-template-idStringSpecifies a static HTML content, which will be rendered as a header of the popup element. This option expects the ID of the script element that contains the template.
header-template-viewIHtmlContentSpecifies a static HTML content, which will be rendered as a header of the popup element. This option expects the instance containing the created HTML.
heightDoubleThe height of the suggestion popup in pixels. The default value is 200 pixels.
highlight-firstBooleanIf set to true the first suggestion will be automatically highlighted.
ignore-caseBooleanIf set to false case-sensitive search will be performed to find suggestions. The widget performs case-insensitive searching by default.
input-modeStringSpecifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.
item-templateStringThe template used to render the items in the popup list.
item-template-handlerStringThe template used to render the items in the popup list. This option expects the name of a JavaScript function that will be called to return the template.
item-template-idStringThe template used to render the items in the popup list. This option expects the ID of the script element that contains the template.
item-template-viewIHtmlContentThe template used to render the items in the popup list. This option expects the instance containing the created HTML.
max-selected-itemsDoubleDefines the limit of the selected items. If set to null widget will not limit number of the selected items.
min-lengthDoubleThe minimum number of characters the user must type before a search is performed. Set to a higher value if the search could match a lot of items. A zero value means that a request will be made as soon as the user focuses the widget.
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. This option expects the name of a JavaScript function that will be called to return the template.
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. This option expects the ID of the script element that contains the template.
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. This option expects the instance containing the created HTML.
on-changeStringThe name of the JavaScript function that will handle the change event. Fired when the value of the widget is changed by the user.The event handler function context (available via the this keyword) will be set to the widget instance.
on-closeStringThe name of the JavaScript function that will handle the close event. Fired 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-boundStringThe name of the JavaScript function that will handle the dataBound event. Fired 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-deselectStringThe name of the JavaScript function that will handle the deselect event. Fired when an item is deselected or tag is removed.
on-filteringStringThe name of the JavaScript function that will handle the filtering event. Fired 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-openStringThe name of the JavaScript function that will handle the open event. Fired 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-selectStringThe name of the JavaScript function that will handle the select event. Fired when an item from the popup is selected by the user.
placeholderStringThe hint displayed by the widget when it is empty. Not set by default.
readonlyBooleanIf set to true, the widget will be readonly and will not allow user input. The widget is not readonly be default and allow user input.
roundedRoundedSets a value controlling the border radius.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
sizeComponentSizeSets the size of the component.
tag-modeStringThe mode used to render the selected tags. The available modes are: - multiple - renders a tag for every selected value - single - renders only one tag that shows the number of the selected values
tag-templateStringThe template used to render the tags.
tag-template-handlerStringThe template used to render the tags. This option expects the name of a JavaScript function that will be called to return the template.
tag-template-idStringThe template used to render the tags. This option expects the ID of the script element that contains the template.
tag-template-viewIHtmlContentThe template used to render the tags. This option expects the instance containing the created HTML.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
valueIEnumerableSpecifies the value binding behavior for the widget. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.
value-primitiveBooleanSpecifies the value binding behavior for the widget. If set to true, the View-Model field will be updated with the selected item value field. If set to false, the View-Model field will be updated with the selected item.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support