Migrating the Chart Extension

To migrate the Telerik UI Chart Extension for ASP.NET MVC to Telerik UI for ASP.NET MVC, use the available and updated API.

  • The DataBinding configuration was 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")))
    
  • Telerik UI for ASP.NET MVC does not support action syntax, that is, “() => {}”. The helpers do not feature the OnLoad event anymore and require you to use $(document).ready() instead.

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

See Also

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