# GridActionCommandBuilderBase

## Methods

### IconClass(System.String)

The class for the web font icon of the button.

#### Parameters

##### iconClass - `System.String`

The class for the web font icon of the button

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").IconClass("k-icon k-i-check"));
                   }))
             
```

### Template(System.String)

The template of the command column.

#### Parameters

##### value - `System.String`

The value that configures the template.

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").Template("Button Template"));
                   }))
             
```

### Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Sets the template of the command column.

#### Parameters

##### template - TemplateBuilder\<T>

The template component

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
                                                                 @Html.TextBox("value")
                                                              </text>
                                                    )
                                                 );
                   })
                )
             
```

### TemplateId(System.String)

The template of the command column.

#### Parameters

##### value - `System.String`

The value that configures the template.

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").TemplateId("TemplateId"));
                   }))
             
```

### TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The template of the command column.

#### Parameters

##### value - `Microsoft.AspNetCore.Html.IHtmlContent`

The value that configures the template.

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").TemplateView(Html.Partial("Template")));
                   }))
             
```

### TemplateHandler(System.String)

TemplateHandler method.

#### Parameters

##### value - `System.String`

### Text(System.String)

Sets the text displayed by the command. If not set a default value is used.

#### Parameters

##### text - `System.String`

The text which should be displayed

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").Text("Text"));
                   }))
             
```

### HtmlAttributes(System.String)

Sets the HTML attributes.

#### Parameters

##### attributesHandler - `System.String`

The HTML attributes.

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").HtmlAttributes("attributesHandler"));
                   }))
             
```

### HtmlAttributes(System.Object)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Object`

The HTML attributes.

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").HtmlAttributes(new { @class="myClass" }));
                   }))
             
```

### HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

#### Parameters

##### attributes - `System.Collections.Generic.IDictionary<String,Object>`

The HTML attributes.

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").HtmlAttributes(new Dictionary<string, object>() {  }));
                   }))
             
```

### Visible(System.Func)

Sets the visible function which will determine if the command button will render.

#### Parameters

##### handler - `System.Func<Object,Object>`

The visible function.

### Visible(System.String)

Sets the visible function which will determine if the command button will render.

#### Parameters

##### handler - `System.String`

The visible function name.

#### RETURNS

Returns the current  instance for method chaining.

#### Example

```
 
               @(Html.Kendo().Grid(Model)
                   .Name("grid")
                   .Columns(columns =>
                   {
                       columns.Command(cmd=>cmd.Custom("Button").Visible("handlerName"));
                   }))
             
```
