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

Defines the fluent interface for configuring the ChartSelectionMousewheelBuilder.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartSelectionMousewheelBuilder

Inheritance: objectChartSelectionMousewheelBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ChartSelectionMousewheelBuilder class.

C#
public ChartSelectionMousewheelBuilder(ChartSelectionMousewheel selectionMousewheel)
Parameters:selectionMousewheelChartSelectionMousewheel

The mousewheel zoom settings.

Methods

Reverses the mousewheel direction. Rotating the wheel down will shrink the selection, rotating up will expand it.

C#
public ChartSelectionMousewheelBuilder Reverse()
Returns:

ChartSelectionMousewheelBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(axis => axis.Select(select => select
.From(fromDate).To(toDate)
.Mousewheel(mw => mw.Reverse())
))
)

Sets a value indicating if the mousewheel should be reversed.

C#
public ChartSelectionMousewheelBuilder Reverse(bool reverse)
Parameters:reversebool

true: scrolling up shrinks the selection. false: scrolling down expands the selection.

Returns:

ChartSelectionMousewheelBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(axis => axis.Select(select => select
.From(fromDate).To(toDate)
.Mousewheel(mw => mw.Reverse(true))
))
)

Sets the mousewheel zoom type

C#
public ChartSelectionMousewheelBuilder Zoom(ChartZoomDirection zoom)
Parameters:zoomChartZoomDirection

The mousewheel zoom type. Default value is ChartZoomDirection.Both

Returns:

ChartSelectionMousewheelBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("Chart")
.CategoryAxis(axis => axis.Select(select =>
select.From(from).To(to)
.Mousewheel(mw => mw.Zoom(ChartZoomDirection.Left))
))
)