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

Defines the fluent API for configuring TreeListToolbar

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectTreeListToolbarBuilder<T>

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 TreeListToolbarBuilder<T> class.

C#
public TreeListToolbarBuilder(TreeListToolbar<T> container)
Parameters:containerTreeListToolbar<T>

The TreeListToolbarBuilder container.

Properties

Gets the container of the TreeListToolbarBuilder

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

Methods

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

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

The handler code wrapped in a text tag.

Returns:

TreeListToolbarBuilder<T>

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

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

The name of the JavaScript function that will be evaluated.

Returns:

TreeListToolbarBuilder<T>

Specifies the icon's name that will be rendered inside the toolbar button. Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
public TreeListToolbarBuilder<T> Icon(Action<TreeListToolbarIconSettingsBuilder<T>> configurator)
Parameters:configuratorAction<TreeListToolbarIconSettingsBuilder<T>>

The TreeListToolbarIconSettingsBuilder<T> for the icon setting.

Returns:

TreeListToolbarBuilder<T>

Returns the current instance of TreeListToolbarBuilder<T> .

Specifies the icon's name that will be rendered inside the toolbar button. When you set this option, the TreeList 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 TreeListToolbarBuilder<T> Icon(string value)
Parameters:valuestring

The value for Icon

Returns:

TreeListToolbarBuilder<T>

A class name that will be rendered inside the toolbar button. When you set this option, the TreeList 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 TreeListToolbarBuilder<T> ImageClass(string value)
Parameters:valuestring

The value for ImageClass

Returns:

TreeListToolbarBuilder<T>

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

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

The value for Name

Returns:

TreeListToolbarBuilder<T>

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

C#
public TreeListToolbarBuilder<T> Template(string value)
Parameters:valuestring

The value for Template

Returns:

TreeListToolbarBuilder<T>

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

C#
public TreeListToolbarBuilder<T> Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the template.

Returns:

TreeListToolbarBuilder<T>

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

C#
public TreeListToolbarBuilder<T> TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for Template

Returns:

TreeListToolbarBuilder<T>

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

C#
public TreeListToolbarBuilder<T> TemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for Template

Returns:

TreeListToolbarBuilder<T>

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

C#
public TreeListToolbarBuilder<T> TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for Template

Returns:

TreeListToolbarBuilder<T>

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

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

The value for Text

Returns:

TreeListToolbarBuilder<T>