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

Defines the fluent API for configuring the Kendo UI Chart for ASP.NET MVC events.

Definition

Constructors

Initializes a new instance of the ChartEventBuilder class.

C#
public ChartEventBuilder(IDictionary<string, object> events)
Parameters:eventsIDictionary<string, object>

The Chart event handlers.

Methods

Defines the handler of the AxisLabelClick client-side event. Fired when the user clicks an axis label.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder AxisLabelClick(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.AxisLabelClick(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the AxisLabelClick client-side event. Fired when the user clicks an axis label.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder AxisLabelClick(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the AxisLabelClick event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.AxisLabelClick("onAxisLabelClick"))
)

Defines the handler of the DataBound client-side event. Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder DataBound(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.DataBound(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DataBound client-side event. Fired when the widget is bound to data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder DataBound(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DataBound event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.DataBound("onDataBound"))
)

Defines the handler of the Drag client-side event. Fired as long as the user is dragging the chart using the mouse or swipe gestures.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Drag(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.Drag(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Drag client-side event. Fired as long as the user is dragging the chart using the mouse or swipe gestures.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Drag(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Drag event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.Drag("onDrag"))
)

Defines the handler of the DragEnd client-side event. Fired when the user stops dragging the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder DragEnd(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.DragEnd(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DragEnd client-side event. Fired when the user stops dragging the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder DragEnd(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DragEnd event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.DragEnd("onDragEnd"))
)

Defines the handler of the DragStart client-side event. Fired when the user starts dragging the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder DragStart(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.DragStart(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DragStart client-side event. Fired when the user starts dragging the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder DragStart(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DragStart event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.DragStart("onDragStart"))
)

Defines the handler of the Drilldown client-side event. Fires when the user when the user wants to drill down on a specific point.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Drilldown(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.Drilldown(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Drilldown client-side event. Fires when the user when the user wants to drill down on a specific point.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Drilldown(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Drilldown event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.Drilldown("onDrilldown"))
)

Defines the handler of the DrilldownLevelChange client-side event. Fires when the drill-down level has changed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder DrilldownLevelChange(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.DrilldownLevelChange(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the DrilldownLevelChange client-side event. Fires when the drill-down level has changed.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder DrilldownLevelChange(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the DrilldownLevelChange event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.DrilldownLevelChange("onDrilldownLevelChange"))
)

Defines the handler of the LegendItemClick client-side event. Fires when an legend item is clicked, before the selected series visibility is toggled. Can be cancelled.

C#
public ChartEventBuilder LegendItemClick(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.LegendItemClick(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the LegendItemClick client-side event. Fires when an legend item is clicked, before the selected series visibility is toggled. Can be cancelled.

C#
public ChartEventBuilder LegendItemClick(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the LegendItemClick event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.LegendItemClick("onLegendItemClick"))
)

Defines the handler of the LegendItemHover client-side event. Fires when an legend item is hovered.

C#
public ChartEventBuilder LegendItemHover(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.LegendItemHover(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the LegendItemHover client-side event. Fires when an legend item is hovered.

C#
public ChartEventBuilder LegendItemHover(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the LegendItemHover event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.LegendItemHover("onLegendItemHover"))
)

Defines the handler of the LegendItemLeave client-side event. Fires when the cursor leaves a legend item.

C#
public ChartEventBuilder LegendItemLeave(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.LegendItemLeave(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the LegendItemLeave client-side event. Fires when the cursor leaves a legend item.

C#
public ChartEventBuilder LegendItemLeave(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the LegendItemLeave event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.LegendItemLeave("onLegendItemLeave"))
)

Defines the handler of the NoteClick client-side event. Fired when the user clicks one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder NoteClick(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.NoteClick(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the NoteClick client-side event. Fired when the user clicks one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder NoteClick(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the NoteClick event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.NoteClick("onNoteClick"))
)

Defines the handler of the NoteHover client-side event. Fired when the user hovers one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder NoteHover(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.NoteHover(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the NoteHover client-side event. Fired when the user hovers one of the notes.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder NoteHover(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the NoteHover event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.NoteHover("onNoteClick"))
)

Defines the handler of the NoteLeave client-side event. Fired when the cursor leaves a note.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder NoteLeave(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.NoteLeave(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the NoteLeave client-side event. Fired when the cursor leaves a note.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder NoteLeave(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the NoteLeave event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.NoteLeave("onNoteLeave"))
)

Defines the handler of the PaneRender client-side event. Fires when a pane is rendered because the chart is rendered, or the chart performs panning or zooming, or because the chart is exported with different options. The event can be used to render custom visuals in the panes.

C#
public ChartEventBuilder PaneRender(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.PaneRender(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the PaneRender client-side event. Fires when a pane is rendered because the chart is rendered, or the chart performs panning or zooming, or because the chart is exported with different options. The event can be used to render custom visuals in the panes.

C#
public ChartEventBuilder PaneRender(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the PaneRender event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.PaneRender("onPaneRender"))
)

Defines the handler of the PlotAreaClick client-side event. Fired when the user clicks the plot area.

C#
public ChartEventBuilder PlotAreaClick(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.PlotAreaClick(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the PlotAreaClick client-side event. Fired when the user clicks the plot area.

C#
public ChartEventBuilder PlotAreaClick(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the PlotAreaClick event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.PlotAreaClick("onPlotAreaClick"))
)

Defines the handler of the PlotAreaHover client-side event. Fired when the user hovers the plot area.

C#
public ChartEventBuilder PlotAreaHover(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.PlotAreaHover(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the PlotAreaHover client-side event. Fired when the user hovers the plot area.

C#
public ChartEventBuilder PlotAreaHover(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the PlotAreaHover event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.PlotAreaHover("onPlotAreaHover"))
)

Defines the handler of the PlotAreaLeave client-side event. Fired when the cursor leaves the plotArea.

C#
public ChartEventBuilder PlotAreaLeave(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.PlotAreaLeave(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the PlotAreaLeave client-side event. Fired when the cursor leaves the plotArea.

C#
public ChartEventBuilder PlotAreaLeave(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the PlotAreaLeave event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.PlotAreaLeave("onPlotAreaLeave"))
)

Defines the handler of the Render client-side event. Fired when the chart is ready to render on screen.Can be used, for example, to remove loading indicators.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Render(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.Render(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Render client-side event. Fired when the chart is ready to render on screen.Can be used, for example, to remove loading indicators.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Render(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Render event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.Render("onRender"))
)

Defines the handler of the Select client-side event. Fired when the user modifies the selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Select(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.Select(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Select client-side event. Fired when the user modifies the selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Select(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Select event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.Select("onSelect"))
)

Defines the handler of the SelectEnd client-side event. Fired when the user completes modifying the selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder SelectEnd(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.SelectEnd(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the SelectEnd client-side event. Fired when the user completes modifying the selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder SelectEnd(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the SelectEnd event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.SelectEnd("onSelectEnd"))
)

Defines the handler of the SelectStart client-side event. Fired when the user starts modifying the axis selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder SelectStart(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.SelectStart(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the SelectStart client-side event. Fired when the user starts modifying the axis selection.The range units are: Generic axis - Category index (0-based) or Date axis - Date instance. The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder SelectStart(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the SelectStart event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.SelectStart("onSelectStart"))
)

Defines the handler of the SeriesClick client-side event. Fired when the user clicks the chart series.

C#
public ChartEventBuilder SeriesClick(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.SeriesClick(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the SeriesClick client-side event. Fired when the user clicks the chart series.

C#
public ChartEventBuilder SeriesClick(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the SeriesClick event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.SeriesClick("onSeriesClick"))
)

Defines the handler of the SeriesHover client-side event. Fired when the user hovers the chart series.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder SeriesHover(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.SeriesHover(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the SeriesHover client-side event. Fired when the user hovers the chart series.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder SeriesHover(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the SeriesHover event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.SeriesHover("onSeriesHover"))
)

Defines the handler of the SeriesLeave client-side event. Fired when the cursor leaves a chart series.

C#
public ChartEventBuilder SeriesLeave(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.SeriesLeave(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the SeriesLeave client-side event. Fired when the cursor leaves a chart series.

C#
public ChartEventBuilder SeriesLeave(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the SeriesLeave event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.SeriesLeave("onSeriesLeave"))
)

Defines the handler of the SeriesOver client-side event. Fired when the cursor is over the chart series.

C#
public ChartEventBuilder SeriesOver(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.SeriesOver(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the SeriesOver client-side event. Fired when the cursor is over the chart series.

C#
public ChartEventBuilder SeriesOver(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the SeriesOver event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.SeriesOver("onSeriesOver"))
)

Defines the handler of the Zoom client-side event. Fired as long as the user is zooming the chart using the mousewheel.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Zoom(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.Zoom(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the Zoom client-side event. Fired as long as the user is zooming the chart using the mousewheel.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder Zoom(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the Zoom event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.Zoom("onZoom"))
)

Defines the handler of the ZoomEnd client-side event. Fired when the user stops zooming the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder ZoomEnd(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.ZoomEnd(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ZoomEnd client-side event. Fired when the user stops zooming the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder ZoomEnd(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the ZoomEnd event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.ZoomEnd("onZoomEnd"))
)

Defines the handler of the ZoomStart client-side event. Fired when the user uses the mousewheel to zoom the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder ZoomStart(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(events =&gt; events.ZoomStart(
@&lt;text&gt;
function(e) {
//event handling code
}
&lt;/text&gt;
))
)

Defines the handler of the ZoomStart client-side event. Fired when the user uses the mousewheel to zoom the chart.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public ChartEventBuilder ZoomStart(string handler)
Parameters:handlerstring

The name of the JavaScript function that will handle the ZoomStart event.

Returns:

ChartEventBuilder

Returns the current instance of ChartEventBuilder .

Example:
C#
@(Html.Kendo().Chart@&lt;Kendo.Mvc.Examples.Models.ElectricityProduction&gt;()
.Name("chart")
.Events(e =&gt; e.ZoomStart("onZoomStart"))
)