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

Defines the fluent API for configuring the PropertyGridToolbar settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectPropertyGridToolbarBuilder<T>

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

Constructors

Initialize the PropertyGridToolbarBuilder

C#
public PropertyGridToolbarBuilder(PropertyGridToolbar settings)
Parameters:settingsPropertyGridToolbar

The PropertyGridToolbar

Methods

The click handler of the toolbar command. Used for custom toolbar commands.

C#
public PropertyGridToolbarBuilder<T> Click(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The value that configures the click action.

Returns:

PropertyGridToolbarBuilder<T>

The click handler of the toolbar command. Used for custom toolbar commands.

C#
public PropertyGridToolbarBuilder<T> Click(string handler)
Parameters:handlerstring

The value that configures the click action.

Returns:

PropertyGridToolbarBuilder<T>

Specifies the icon's name that will be rendered inside the toolbar button. When you set this option, the PropertyGrid renders an additional span element inside the toolbar button which has a name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.

C#
public PropertyGridToolbarBuilder<T> Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

PropertyGridToolbarBuilder<T>

A class name that will be rendered inside the toolbar button. When you set this option, the PropertyGrid renders an additional span element inside the toolbar button which has a class name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.

C#
public PropertyGridToolbarBuilder<T> ImageClass(string value)
Parameters:valuestring

The value that configures the imageclass.

Returns:

PropertyGridToolbarBuilder<T>

The name of the toolbar command. Can be either a built-in ("search", "sort", "group" or "details") or a custom string. The name is output in the HTML as a value of the data-command attribute of the button.

C#
public PropertyGridToolbarBuilder<T> Name(string value)
Parameters:valuestring

The value that configures the name.

Returns:

PropertyGridToolbarBuilder<T>

The text that is displayed by the command button. If not set, the PropertyGrid will use the name option as the button text instead.

C#
public PropertyGridToolbarBuilder<T> Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

PropertyGridToolbarBuilder<T>