SparklineEventBuilder

Methods

AxisLabelClick(System.String)

Defines the handler of the AxisLabelClick client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

AxisLabelClick(System.Func)

Defines the handler of the AxisLabelClick client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

DataBound(System.String)

Defines the handler of the DataBound client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

DataBound(System.Func)

Defines the handler of the DataBound client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

DragStart(System.String)

Defines the handler of the DragStart client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

DragStart(System.Func)

Defines the handler of the DragStart client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

Drag(System.String)

Defines the handler of the Drag client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

Drag(System.Func)

Defines the handler of the Drag client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

DragEnd(System.String)

Defines the handler of the DragEnd client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

DragEnd(System.Func)

Defines the handler of the DragEnd client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

PaneRender(System.String)

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.

For more information see PaneRender event.

Parameters

handler - System.String

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

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

PaneRender(System.Func)

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.

For more information see PaneRender event.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

PlotAreaClick(System.String)

Defines the handler of the PlotAreaClick client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

PlotAreaClick(System.Func)

Defines the handler of the PlotAreaClick client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

PlotAreaHover(System.String)

Defines the handler of the PlotAreaHover client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

PlotAreaHover(System.Func)

Defines the handler of the PlotAreaHover client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

PlotAreaLeave(System.String)

Defines the handler of the PlotAreaLeave client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

PlotAreaLeave(System.Func)

Defines the handler of the PlotAreaLeave client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

SeriesClick(System.String)

Defines the handler of the SeriesClick client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

SeriesClick(System.Func)

Defines the handler of the SeriesClick client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

SeriesHover(System.String)

Defines the handler of the SeriesHover client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

SeriesHover(System.Func)

Defines the handler of the SeriesHover client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

SeriesOver(System.String)

Defines the handler of the SeriesOver client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

SeriesOver(System.Func)

Defines the handler of the SeriesOver client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

SeriesLeave(System.String)

Defines the handler of the SeriesLeave client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

SeriesLeave(System.Func)

Defines the handler of the SeriesLeave client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

ZoomStart(System.String)

Defines the handler of the ZoomStart client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

ZoomStart(System.Func)

Defines the handler of the ZoomStart client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

Zoom(System.String)

Defines the handler of the Zoom client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

Zoom(System.Func)

Defines the handler of the Zoom client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

ZoomEnd(System.String)

Defines the handler of the ZoomEnd client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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

ZoomEnd(System.Func)

Defines the handler of the ZoomEnd client-side event. 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.

RETURNS

Returns the current instance of SparklineEventBuilder .

Example

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