New to Telerik UI for ASP.NET Core? Download free 30-day trial

Adaptive Mode

The Telerik UI for ASP.NET Core AutoComplete supports an adaptive mode that provides a mobile-friendly rendering of its popup. Which will accommodate its content based on the current screen size.

To set the adaptive mode, use the AdaptiveMode() option.

     @(Html.Kendo().AutoComplete()
        .Name("autocomplete")
        .DataTextField("ProductName")
        .Filter("contains")
        .AdaptiveMode(AdaptiveMode.Auto)
        .DataSource(source =>
        {
            source.Read(read =>
            {
                read.Action("Products_Read", "AutoComplete");
            })
            .ServerFiltering(true);
        })
    )

    <kendo-autocomplete name="products" 
                        filter="FilterType.Contains"
                        datatextfield="ProductName"
                        adaptive-mode="AdaptiveMode.Auto"
        <datasource type="DataSourceTagHelperType.Custom" server-filtering="true">
            <transport>
                <read url="@Url.Action("Products_Read", "AutoComplete")" />
            </transport>
        </datasource>
    </kendo-autocomplete>

See Also

In this article