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

Defines the fluent interface for configuring ChartNavigatorHint.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartNavigatorHintBuilder

Inheritance: objectChartNavigatorHintBuilder

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

C#
public ChartNavigatorHintBuilder(ChartNavigatorHint navigatorHint)
Parameters:navigatorHintChartNavigatorHint

The navigator hint.

Methods

Sets the format.

C#
public ChartNavigatorHintBuilder Format(string format)
Parameters:formatstring

The format.

Returns:

ChartNavigatorHintBuilder

Example:
C#
@( Html.Kendo().StockChart(Model)
.Name("Chart")
.Navigator(nav => nav
.Series(series =>
{
series.Bar(s => s.SalesAmount);
})
.Hint(hint => hint
.Format("{0:d} | {1:d}")
)
)
)

Sets the template

C#
public ChartNavigatorHintBuilder Template(string template)
Parameters:templatestring

The template.

Returns:

ChartNavigatorHintBuilder

Example:
C#
@( Html.Kendo().StockChart(Model)
.Name("Chart")
.Navigator(nav => nav
.Series(series =>
{
series.Bar(s => s.SalesAmount);
})
.Hint(hint => hint
.Template("From: #= from # To: #= to #")
)
)
)

Sets the hint visibility.

C#
public ChartNavigatorHintBuilder Visible(bool visible)
Parameters:visiblebool

The hint visibility.

Returns:

ChartNavigatorHintBuilder

Example:
C#
@( Html.Kendo().StockChart(Model)
.Name("Chart")
.Navigator(nav => nav
.Series(series =>
{
series.Bar(s => s.SalesAmount);
})
.Hint(hint => hint
.Visible(false)
)
)
)