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

Events

You can subscribe to all Chart events.

Handling by Handler Name

The following examples demonstrates how to subscribe to events by a handler name.

Razor
    @(Html.Kendo().Chart<Kendo.Mvc.Examples.Models.ElectricityProduction>()
        .Name("chart")
        .Events(events => events
            .SeriesClick("onSeriesClick")
            .DataBound("onDataBound")
        )
    )

Handling by Template Delegate

Razor
    @(Html.Kendo().Chart<Kendo.Mvc.Examples.Models.ElectricityProduction>()
        .Name("chart")
        .Events(events => events
            .SeriesClick(@<text>
                function() {
                    // Handle the seriesClick event
                }
            </text>)
            .DataBound(@<text>
                function() {
                    // Handle the dataBound event
                }
            </text>)
        )
    )

Next Steps

See Also