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

GridToolBarSettingsBuilder class.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

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

GridToolBarSettingsBuilder method.

C#
public GridToolBarSettingsBuilder(GridToolBarSettings container, Grid<T> component)
Parameters:containerGridToolBarSettingscomponentGrid<T>

Properties

Component member.

C#
protected Grid<T> Component { get; }

Gets the settings being configured.

C#
protected GridToolBarSettings 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>

A reference to the GridToolBarSettingsBuilder<T> instance after the operation has completed.

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>

A reference to the GridToolBarSettingsBuilder<T> instance after the operation has completed.

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>

A reference to the GridToolBarSettingsBuilder<T> instance after the operation has completed.