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

Defines the fluent interface for configuring the ChartNavigatorSelectionBuilder.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartNavigatorSelectionBuilder

Inheritance: objectChartNavigatorSelectionBuilder

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

C#
public ChartNavigatorSelectionBuilder(ChartNavigatorSelection chartSelection)
Parameters:chartSelectionChartNavigatorSelection

The chart selection.

Methods

Sets the selection lower boundary

C#
public ChartNavigatorSelectionBuilder From(DateTime fromDate)
Parameters:fromDateDateTime

The selection lower boundary.

Returns:

ChartNavigatorSelectionBuilder

Example:
C#
@( Html.Kendo().StockChart(Model)
.Name("Chart")
.Navigator(nav => nav.Select(x => x.From(DateTime.Today)))
)

Configures the mousewheel selection options

C#
public ChartNavigatorSelectionBuilder Mousewheel(Action<ChartSelectionMousewheelBuilder> configurator)
Parameters:configuratorAction<ChartSelectionMousewheelBuilder>

The mousewheel zoom options

Returns:

ChartNavigatorSelectionBuilder

Example:
C#
@( Html.Kendo().StockChart(Model)
.Name("Chart")
.Navigator(nav =&gt; nav.Select(x =&gt; x.Mousewheel(mw =&gt; mw.Zoom(ChartZoomDirection.Right))))
)

Enable or disable mouse wheel zooming.

C#
public ChartNavigatorSelectionBuilder Mousewheel(bool enabled)
Parameters:enabledbool

The value which enables or disables mouse wheel zooming.

Returns:

ChartNavigatorSelectionBuilder

Example:
C#
@( Html.Kendo().StockChart(Model)
.Name("Chart")
.Navigator(nav =&gt; nav.Select(x =&gt; x.Mousewheel(false)))
)

Sets the selection upper boundary

C#
public ChartNavigatorSelectionBuilder To(DateTime toDate)
Parameters:toDateDateTime

The selection upper boundary.

Returns:

ChartNavigatorSelectionBuilder

Example:
C#
@( Html.Kendo().StockChart(Model)
.Name("Chart")
.Navigator(nav =&gt; nav.Select(x =&gt; x.To(DateTime.Today)))
)