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

Provides a fluent interface for configuring Grid toolbar settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

The type of the data model.

Syntax:

C#
public class GridToolBarSettingsBuilder<T> where T : class

Inheritance: objectGridToolBarSettingsBuilder<T>

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

Constructors

C#
public GridToolBarSettingsBuilder(GridToolBarSettings<T> container, GridMessagesCommandsSettings messagesSettings)
Parameters:containerGridToolBarSettings<T>messagesSettingsGridMessagesCommandsSettings

Properties

C#
protected GridToolBarSettings<T> Container { get; }

Methods

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

C#
public GridToolBarSettingsBuilder<T> Items(Action<GridToolBarCommandFactoryBase<T>> configurator)
Parameters:configuratorAction<GridToolBarCommandFactoryBase<T>>

The configurator for the items setting.

Returns:

GridToolBarSettingsBuilder<T>

Configures the overflow behavior of the ToolBar.

C#
public GridToolBarSettingsBuilder<T> Overflow(Action<GridToolbarOverflowSettingsBuilder> configurator)
Parameters:configuratorAction<GridToolbarOverflowSettingsBuilder>

The configurator for the overflow setting.

Returns:

GridToolBarSettingsBuilder<T>

If set to true, the toolbar will show the inactive tools in a disabled state. By default the tools will be hidden.

C#
public GridToolBarSettingsBuilder<T> ShowInactiveTools(bool value)
Parameters:valuebool

The value that determines if inactive tools will be shown in a disabled state.

Returns:

GridToolBarSettingsBuilder<T>