MultiSelect TagHelper Overview

The Telerik UI MultiSelect TagHelper for ASP.NET Core is a server-side wrapper for the Kendo UI MultiSelect widget.

The MultiSelect displays a list of options and allows multiple selections from this list. The widget represents a richer version of the <select> element and provides support for local and remote data binding, item and tag templates, and configurable options for controlling the list behavior.

Initializing the MultiSelect

The following example demonstrates how to define the MultiSelect by using the MultiSelect TagHelper.

  <kendo-multiselect name="products" filter="FilterType.StartsWith"></kendo-multiselect>

Basic Configuration

The MultiSelect TagHelper configuration options are passed as attributes of the tag.


    @(Html.Kendo().MultiSelect()
          .Name("products")
          .DataTextField("ProductName")
          .DataValueField("ProductID")
          .HtmlAttributes(new { style = "width:100%;" })
          .Filter(FilterType.Contains)
          .DataSource(source => source
              .Read(read => read.Action("GetProducts", "Home"))
          )
    )

    <kendo-multiselect name="products" filter="FilterType.Contains"
                       placeholder="Select product"
                       datatextfield="ProductName"
                       datavaluefield="ProductID"
                       style="width: 100%;">
        <datasource type="DataSourceTagHelperType.Custom">
            <transport>
                <read url="@Url.Action("GetProducts", "Home")" />
            </transport>
        </datasource>
    </kendo-multiselect>

See Also

In this article
Not finding the help you need? Improve this article