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

Defines the fluent API for configuring the Kendo ToolBar for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the ToolBar class.

C#
public ToolBarBuilder(ToolBar component)
Parameters:componentToolBar

The component.

Methods

Configures the client-side events.

C#
public ToolBarBuilder Events(Action<ToolBarEventBuilder> configurator)
Parameters:configuratorAction<ToolBarEventBuilder>

The client events action.

Returns:

ToolBarBuilder

Example:
C#
@( Html.Kendo().ToolBar()
.Name("toolBar")
.Events(events =&gt; events
.Click("onClick")
)
)

A JavaScript array that contains the ToolBar's commands configuration.

C#
public ToolBarBuilder Items(Action<ToolBarItemFactory> configurator)
Parameters:configuratorAction<ToolBarItemFactory>

The action that configures the items.

Returns:

ToolBarBuilder

If set to true this configuration option would enable Tab-based navigation among ToolBar items.

C#
public ToolBarBuilder NavigateOnTab(bool value)
Parameters:valuebool

The value that configures the navigateontab.

Returns:

ToolBarBuilder

Example:
C#
@(Html.Kendo().ToolBar()
.Name("toolBar")
.NavigateOnTab(true)
)

Configures the overflow behavior of the ToolBar.

C#
public ToolBarBuilder Overflow(Action<ToolBarOverflowSettingsBuilder> configurator)
Parameters:configuratorAction<ToolBarOverflowSettingsBuilder>

The action that configures the overflow.

Returns:

ToolBarBuilder

If resizable is set to true the widget will detect changes in the viewport width and hides the overflowing controls in the command overflow popup.

C#
public ToolBarBuilder Resizable(bool value)
Parameters:valuebool

The value that configures the resizable.

Returns:

ToolBarBuilder

Example:
C#
@(Html.Kendo().ToolBar()
.Name("toolBar")
.Resizable(true)
)
C#
public ToolBarBuilder Size(ComponentSize value)
Parameters:valueComponentSize

The value that configures the size.

Returns:

ToolBarBuilder