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

Defines the fluent API for configuring TreeListColumnCommand

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

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

Inheritance: objectTreeListColumnCommandBuilder<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 TreeListColumnCommandBuilder<T> class.

C#
public TreeListColumnCommandBuilder(TreeListColumnCommand<T> container)
Parameters:containerTreeListColumnCommand<T>

The TreeList column command container.

Properties

Gets the container of the TreeList column command

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

Methods

The CSS class that is applied to the command button.

C#
public TreeListColumnCommandBuilder<T> ClassName(string value)
Parameters:valuestring

The value for ClassName

Returns:

TreeListColumnCommandBuilder<T>

Returns the current TreeListColumnCommandBuilder<T> instance.

The JavaScript function that is executed when the user clicks the command button. The function receives a jQuery event as an argument. The function context that is available through the this keyword will be set to the TreeList instance.

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

The handler code wrapped in a text tag.

Returns:

TreeListColumnCommandBuilder<T>

Returns the current TreeListColumnCommandBuilder<T> instance.

The JavaScript function that is executed when the user clicks the command button. The function receives a jQuery event as an argument. The function context that is available through the this keyword will be set to the TreeList instance.

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

The name of the JavaScript function that will be evaluated.

Returns:

TreeListColumnCommandBuilder<T>

Returns the current TreeListColumnCommandBuilder<T> instance.

Specifies the icon's name of the command 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 TreeListColumnCommandBuilder<T> Icon(Action<TreeListColumnCommandIconSettingsBuilder<T>> configurator)
Parameters:configuratorAction<TreeListColumnCommandIconSettingsBuilder<T>>

The TreeListColumnCommandIconSettingsBuilder<T> for the icon setting.

Returns:

TreeListColumnCommandBuilder<T>

Returns the current instance of TreeListColumnCommandBuilder<T> .

Specifies the icon's name of the command 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 TreeListColumnCommandBuilder<T> Icon(string icon)
Parameters:iconstring

The icon.

Returns:

TreeListColumnCommandBuilder<T>

Returns the current instance of TreeListColumnCommandBuilder<T> .

The CSS class that is applied to the icon span of the command button.

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

The value for ImageClass

Returns:

TreeListColumnCommandBuilder<T>

Returns the current TreeListColumnCommandBuilder<T> instance.

The name of the command. Commands can be built-in ("edit", "createChild" and "destroy") or custom. When set to a custom value, the name is rendered as a data-command attribute. For more information, refer to the columns.command section.

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

The value for Name

Returns:

TreeListColumnCommandBuilder<T>

Returns the current TreeListColumnCommandBuilder<T> instance.

The text that is displayed by the command button. If not set, the name option is used as the button text. To have an icon button with no text, you can set the text property to an empty string.

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

The value for Text

Returns:

TreeListColumnCommandBuilder<T>

Returns the current TreeListColumnCommandBuilder<T> instance.