New to Telerik UI for ASP.NET CoreStart a free 30-day trial

Headers

As of the Telerik UI for ASP.NET Core R3 2019 release, you can set request headers by using the Headers configuration option of the DataSource.

The following example demonstrates how to use the Headers option to set a request header.

Razor
    @(Html.Kendo().DataSource<OrderViewModel>()
        .Name("myDataSource")
        .Ajax(d => d.Read(r => r.Action("ReadOrders", "Home").Headers(new { header1 = "test" })))
    )

    <script>
        myDataSource.read(); // The header will be set in the request that is sent to the HomeController ReadOrders action.
    </script>  

See Also

In this article
See Also
Not finding the help you need?
Contact Support