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

Defines the fluent interface for configuring the chart zoomable options.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartZoomableBuilder

Inheritance: objectChartZoomableBuilder

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 ChartZoomableBuilder class.

C#
public ChartZoomableBuilder(ChartZoomable zoomable)
Parameters:zoomableChartZoomable

Methods

Configure mouse wheel zooming.

C#
public ChartZoomableBuilder Mousewheel(Action<ChartMousewheelZoomBuilder> configurator)
Parameters:configuratorAction<ChartMousewheelZoomBuilder>Returns:

ChartZoomableBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Zoomable(zoomable =&gt; zoomable.Mousewheel(mouse =&gt; mouse.Lock(ChartAxisLock.Y)))
)

Enable or disable mouse wheel zooming.

C#
public ChartZoomableBuilder Mousewheel(bool enabled)
Parameters:enabledboolReturns:

ChartZoomableBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Zoomable(zoomable =&gt; zoomable.Mousewheel(true))
)

Configure selection zooming.

C#
public ChartZoomableBuilder Selection(Action<ChartSelectionZoomBuilder> configurator)
Parameters:configuratorAction<ChartSelectionZoomBuilder>Returns:

ChartZoomableBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Zoomable(zoomable =&gt; zoomable.Selection(select =&gt; select.Key(ChartActivationKey.Ctrl)))
)

Enable or disable selection zooming.

C#
public ChartZoomableBuilder Selection(bool enabled)
Parameters:enabledboolReturns:

ChartZoomableBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Zoomable(zoomable =&gt; zoomable.Selection(true))
)