Edit this page

Chart Migration

This article demonstrates the ASP.NET MVC server-side API for the Kendo UI Chart widget.

Server-Side API

Data Binding

The DataBinding configuration is moved to the DataSource.


    Html.Telerik().Chart<SalesData>()
    .Name("Chart")
    .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Chart"))

    Html.Kendo().Chart<SalesData>()
    .Name("Chart")
    .DataSource(ds => ds.Read(read => read.Action("_AjaxBinding", "Chart")))

Client-Side API

Events

Kendo UI Complete for ASP.NET MVC does not support action syntax, that is “() => {}”.

None of the widgets features the OnLoad event anymore. Use $(document).ready() instead.


    .ClientEvents(events => events.OnError("onError"))

    .DataSource(ds => ds.Events(events => events.Error("error")))

See Also

To see the articles on migrating Kendo UI controls from Telerik Extensions, browse the Widgets folder.