SparklineEventBuilder

Methods

AxisLabelClick(System.String)

Fires when an axis label is clicked.

For more information see AxisLabelClick event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .AxisLabelClick("handler")
                  )
            )
             

AxisLabelClick(System.Func)

Fires when an axis label is clicked.

For more information see AxisLabelClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.AxisLabelClick(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

DataBound(System.String)

Fires when the sparkline has received data from the data source and is about to render it.

For more information see DataBound event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .DataBound("handler")
                  )
            )
             

DataBound(System.Func)

Fires when the sparkline has received data from the data source and is about to render it.

For more information see DataBound event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.DataBound(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

DragStart(System.String)

Fires when the user has used the mouse or a swipe gesture to drag the sparkline.The drag operation can be aborted by calling e.preventDefault().

For more information see DragStart event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .DragStart("handler")
                  )
            )
             

DragStart(System.Func)

Fires when the user has used the mouse or a swipe gesture to drag the sparkline.The drag operation can be aborted by calling e.preventDefault().

For more information see DragStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.DragStart(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

Drag(System.String)

Fires as long as the user is dragging the sparkline using the mouse or swipe gestures.

For more information see Drag event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .Drag("handler")
                  )
            )
             

Drag(System.Func)

Fires as long as the user is dragging the sparkline using the mouse or swipe gestures.

For more information see Drag event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.Drag(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

DragEnd(System.String)

Fires when the user stops dragging the sparkline.

For more information see DragEnd event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .DragEnd("handler")
                  )
            )
             

DragEnd(System.Func)

Fires when the user stops dragging the sparkline.

For more information see DragEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.DragEnd(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

PaneRender(System.String)

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.

For more information see PaneRender event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .PaneRender("handler")
                  )
            )
             

PaneRender(System.Func)

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.

For more information see PaneRender event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.PaneRender(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

PlotAreaClick(System.String)

Fires when plot area is clicked.

For more information see PlotAreaClick event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .PlotAreaClick("handler")
                  )
            )
             

PlotAreaClick(System.Func)

Fires when plot area is clicked.

For more information see PlotAreaClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.PlotAreaClick(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

PlotAreaHover(System.String)

Fired when the user hovers the plot area.

For more information see PlotAreaHover event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .PlotAreaHover("handler")
                  )
            )
             

PlotAreaHover(System.Func)

Fired when the user hovers the plot area.

For more information see PlotAreaHover event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.PlotAreaHover(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

PlotAreaLeave(System.String)

Fired when the cursor leaves the plotArea.

For more information see PlotAreaLeave event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .PlotAreaLeave("handler")
                  )
            )
             

PlotAreaLeave(System.Func)

Fired when the cursor leaves the plotArea.

For more information see PlotAreaLeave event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.PlotAreaLeave(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

SeriesClick(System.String)

Fires when chart series are clicked.

For more information see SeriesClick event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .SeriesClick("handler")
                  )
            )
             

SeriesClick(System.Func)

Fires when chart series are clicked.

For more information see SeriesClick event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.SeriesClick(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

SeriesHover(System.String)

Fires when chart series are hovered. The data that is available when the event is fired is listed below.

For more information see SeriesHover event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .SeriesHover("handler")
                  )
            )
             

SeriesHover(System.Func)

Fires when chart series are hovered. The data that is available when the event is fired is listed below.

For more information see SeriesHover event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.SeriesHover(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

SeriesOver(System.String)

Fired when the cursor is over the chart series.

For more information see SeriesOver event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .SeriesOver("handler")
                  )
            )
             

SeriesOver(System.Func)

Fired when the cursor is over the chart series.

For more information see SeriesOver event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.SeriesOver(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

SeriesLeave(System.String)

Fired when the cursor leaves a chart series.

For more information see SeriesLeave event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .SeriesLeave("handler")
                  )
            )
             

SeriesLeave(System.Func)

Fired when the cursor leaves a chart series.

For more information see SeriesLeave event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.SeriesLeave(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

ZoomStart(System.String)

Fires when the user has used the mousewheel to zoom the chart.The zoom operation can be aborted by calling e.preventDefault().

For more information see ZoomStart event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .ZoomStart("handler")
                  )
            )
             

ZoomStart(System.Func)

Fires when the user has used the mousewheel to zoom the chart.The zoom operation can be aborted by calling e.preventDefault().

For more information see ZoomStart event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.ZoomStart(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

Zoom(System.String)

Fires as long as the user is zooming the chart using the mousewheel.

For more information see Zoom event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .Zoom("handler")
                  )
            )
             

Zoom(System.Func)

Fires as long as the user is zooming the chart using the mousewheel.

For more information see Zoom event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.Zoom(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )
             

ZoomEnd(System.String)

Fires when the user stops zooming the chart.

For more information see ZoomEnd event.

Parameters

handler - System.String

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

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                  .Events(events => events
                      .ZoomEnd("handler")
                  )
            )
             

ZoomEnd(System.Func)

Fires when the user stops zooming the chart.

For more information see ZoomEnd event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Example

Razor
 
            @(Html.Kendo().Sparkline()
                  .Name("Sparkline")
                 .Events(e => e.ZoomEnd(
                          @<text>
                             function(e){
                                 event handling code
                             }
                          </text>
                 ))
            )