# GridBuilder

## Properties

### WriteAction - Func

## Methods

### EnableCustomBinding(System.Boolean)

If set to true the grid will perform custom binding.

#### Parameters

##### value - `System.Boolean`

If true enables custom binding.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .EnableCustomBinding(true)
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### BindTo(System.Collections.Generic.IEnumerable)

Binds the grid to a list of objects

#### Parameters

##### dataSource - `System.Collections.Generic.IEnumerable<T>`

The data source.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @model IEnumerable<Product>
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .BindTo(Model)
            )
             
```

### BindTo(System.Collections.IEnumerable)

Binds the grid to a list of objects

#### Parameters

##### dataSource - `System.Collections.IEnumerable`

The data source.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @model IEnumerable;
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .BindTo(Model)
            )
             
```

### Editable(System.Action)

Sets the editing configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridEditingSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/grideditingsettingsbuilder)>

The lambda which configures the editing

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .Editable(editing => editing.Mode(GridEditMode.PopUp))
            )
             
```

### Editable(Kendo.Mvc.UI.GridEditMode)

Sets the edit mode of the grid.

#### Parameters

##### editMode - [GridEditMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/grideditmode)

The lambda which configures the editing

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .Editable(editing => editing.Mode(GridEditMode.PopUp))
            )
             
```

### Editable()

Sets the editing configuration of the grid.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .Editable(editing => editing.Mode(GridEditMode.PopUp))
            )
             
```

### DataSource(System.Action)

Sets the data source configuration of the grid.

#### Parameters

##### configurator - System.Action<[DataSourceBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/datasourcebuilder)>

The lambda which configures the data source

#### Example

```
 
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### DataSource(System.String)

Sets the ID of the DataSource widget used by the Grid.

#### Parameters

##### dataSourceId - `System.String`

The name of the DataSource

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .DataSource("dataSource1")
            )
            @(Html.Kendo().DataSource<Product>()
                .Name("dataSource1")
                .Ajax(ds=>ds
                    .Read(read => read.Action("Products_Read", "Home"))
                    .PageSize(20)
                )
            )
             
```

### Pageable()

Enables grid paging.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                 .Name("grid")
                 .Pageable()
                 .DataSource(dataSource =>
                     // configure the data source
                     dataSource
                         .Ajax()
                         .Read(read => read.Action("Products_Read", "Home"))
                 )
             )
              
```

### Pageable(System.Action)

Sets the paging configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridPageableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridpageablesettingsbuilder)>

The lambda which configures the paging

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .Pageable(paging =>
                    paging.Refresh(true)
                )
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### Filterable()

Enables grid filtering.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .Filterable()
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### Filterable(System.Action)

Sets the filtering configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridFilterableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridfilterablesettingsbuilder)>

The lambda which configures the filtering

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .Filterable(filtering => filtering.Enabled(true))
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### Resizable(System.Action)

Sets the resizing configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridResizingSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridresizingsettingsbuilder)>

The lambda which configures the resizing

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .Resizable(resizing => resizing.Columns(true))
            )
             
```

### Reorderable(System.Action)

Sets the reordering configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridReorderingSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridreorderingsettingsbuilder)>

The lambda which configures the reordering

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .Reorderable(reordering => reordering.Columns(true))
            )
             
```

### Selectable()

Enables grid row selection.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .Selectable()
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### Selectable(System.Action)

Sets the selection configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridSelectionSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridselectionsettingsbuilder)>

The lambda which configures the selection

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .Selectable(selection => selection.Enabled(true))
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### Scrollable()

Enables grid scrolling.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .Scrollable()
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### Scrollable(System.Action)

Sets the scrolling configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridScrollSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridscrollsettingsbuilder)>

The lambda which configures the scrolling

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .Scrollable(scrolling => scrolling.Enabled(true))
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### Columns(System.Action)

Sets the column configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridColumnFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcolumnfactory)>

The lambda which configures columns

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(product => product.ProductName).Title("Product Name");
                    columns.Command(command => command.Destroy());
                })
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Destroy(destroy => destroy.Action("Products_Destroy", "Home"))
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### Mobile()

Enables the adaptive rendering when viewed on mobile browser

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
              @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);
                })
                .Mobile()
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )
              
```

### Mobile(Kendo.Mvc.UI.MobileMode)

Used to determine if adaptive rendering should be used when viewed on mobile browser

#### Parameters

##### type - [MobileMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/mobilemode)

Defines the type of the Mobile Mode

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);
                })
                .Mobile(MobileMode.Phone)
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )
              
```

### ToolBar(System.Action)

Sets the toolbar configuration of the grid. Set the list of commands displayed in the Grid's Toolbar. Supports adding custom or built-in commands.

#### Parameters

##### configurator - System.Action<[GridToolBarCommandFactory](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridtoolbarcommandfactory)>

The lambda which configures the toolbar

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .ToolBar(commands => commands.Create())
            )
             
```

### ToolBar(System.Action)

Sets the toolbar configuration of the grid. Set the list of commands displayed in the Grid's Toolbar. Supports adding custom or built-in commands.

#### Parameters

##### configurator - System.Action<[GridToolBarSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridtoolbarsettingsbuilder)>

The lambda which configures the toolbar

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .ToolBar(commands => commands.Create())
            )
             
```

### ToolBar(System.String)

Sets toolbar template. When a String value is assigned to the toolbar configuration option, it will be treated as a single string template for the whole Grid toolbar and the string value will be passed as an argument to a kendo.template() function.

#### Parameters

##### template - `System.String`

The action defining the template.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 ")
            )
             
```

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

Sets the toolbar template. Use the Template Component to configure the Toolbar.

#### Parameters

##### template - TemplateBuilder\<TModel>

The template component which contains the template.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
                .ToolBar(Html.Kendo().Template().AddComponent(c => c
                          .Button()
                          .Name("refresh")
                          .Icon("arrow-rotate-cw")
                      ))
            )
             
```

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

Sets toolbar template.

#### Parameters

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

The view that contains the template.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

### ToolBarClientTemplateId(System.String)

Sets the id of the script element which contains the client-side toolbar template of the grid.

#### Parameters

##### template - `System.String`

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
                 <script id="toolbarTemplate" type="text/x-kendo-template">
                     <span>Toolbar content</span>
                 </script>
            
              @(Html.Kendo().Grid<Product>()
                 .Name("Grid")
                 .DataSource(dataSource =>
                     // configure the data source
                     dataSource
                      .Ajax()
                      .Read(read => read.Action("Products_Read", "Home"))
                 )
                .ToolBar("toolbarTemplate")
             )
              
```

### ToolBarClientTemplateHandler(System.String)

Sets the toolbar template. When a Function value is assigned (it may be a kendo.template() function call or a generic function reference), then the return value of the function will be used to render the Grid Toolbar contents.

#### Parameters

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

The function handler which contains the template.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .ToolBar("toolbarTemplateHandler")
            )
             
```

### ContextMenu()

Enables the Grid's Context Menu.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .ContextMenu()
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
            )
             
```

### ContextMenu(System.Action)

Sets the ContextMenu configuration of the grid.

#### Parameters

##### configurator - System.Action<[GridContextMenuBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcontextmenubuilder)>

The lambda which configures the Context Menu

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<Product>()
                .Name("Grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                     .Ajax()
                     .Read(read => read.Action("Products_Read", "Home"))
                )
               .ContextMenu(menu => menu.Body(body => body.ExportPDF()))
            )
             
```

### ClientRowTemplate(System.String)

Sets the client-side row template of the grid. The client-side row template must contain a table row element (tr).

#### Parameters

##### template - `System.String`

The template

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
                .ClientRowTemplate(
                "<tr>" +
                    "<td>#: ProductName #</td>" +
                    "<td>#: UnitsInStock #</td>" +
                "</tr>"
                )
            )
             
```

### ClientRowTemplateHandler(System.String)

The JavaScript function that returns the client-side row template of the grid. The client-side row template must contain a table row element (tr).

#### Parameters

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

The name of the JavaScript function.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

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

Sets the client-side row template of the grid. The client-side row template must contain a table row element (tr).

#### Parameters

##### template - TemplateBuilder\<TModel>

The template [TemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/templatebuilder)

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

### ClientAltRowTemplate(System.String)

Sets the client-side alt row template of the grid. The client-side alt row template must contain a table row element (tr).

#### Parameters

##### template - `System.String`

The template

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<Product>()
                .Name("grid")
                .DataSource(dataSource =>
                    // configure the data source
                    dataSource
                        .Ajax()
                        .Read(read => read.Action("Products_Read", "Home"))
                )
                .ClientAltRowTemplate(
                "<tr class='k-alt'>" +
                    "<td>#: ProductName #</td>" +
                    "<td>#: UnitsInStock #</td>" +
                "</tr>"
                )
            )
             
```

### ClientAltRowTemplateHandler(System.String)

The JavaScript function that returns the client-side alt row template of the grid. The client-side alt row template must contain a table row element (tr).

#### Parameters

##### template - `System.String`

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

### ClientRowTemplate(System.Func)

#### Parameters

##### template - System.Func<[Grid](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/grid),String>

### ClientAltRowTemplate(System.Func)

#### Parameters

##### template - System.Func<[Grid](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/grid),String>

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

Sets the client-side alt row template of the grid. The client-side row template must contain a table row element (tr).

#### Parameters

##### template - TemplateBuilder\<TModel>

The template [TemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/templatebuilder)

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

### ClientDetailTemplateId(System.String)

Sets the id of the script element which contains the client-side detail template of the grid.

#### Parameters

##### id - `System.String`

The id

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            	 @(Html.Kendo().Grid<Product>()
            	     .Name("grid")
            	     .DataSource(dataSource =>
            	         // configure the data source
            	         dataSource
            	             .Ajax()
            	             .Read(read => read.Action("Products_Read", "Home"))
            	     )
            	     .ClientDetailTemplateId("detail-template")
            	 )
            	 <script id="detail-template" type="text/x-kendo-template">
            	     Product Details:
            	     <div>Product Name: #: ProductName # </div>
            	     <div>Units In Stock: #: UnitsInStock #</div>
            	 </script>
             
```

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

Sets the client-side detail template of the grid.

#### Parameters

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

The template view

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            	 @(Html.Kendo().Grid<Product>()
            	     .Name("grid")
            	     .DataSource(dataSource =>
            	         // configure the data source
            	         dataSource
            	             .Ajax()
            	             .Read(read => read.Action("Products_Read", "Home"))
            	     )
            	     .ClientDetailTemplateView(Html.Partial("detail-template"))
            	 )
            	 <script id="detail-template" type="text/x-kendo-template">
            	     Product Details:
            	     <div>Product Name: #: ProductName # </div>
            	     <div>Units In Stock: #: UnitsInStock #</div>
            	 </script>
             
```

### ClientDetailTemplateHandler(System.String)

The JavaScript function that returns the client-side detail template of the grid.

#### Parameters

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

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

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

Sets the client-side detail template of the grid.

#### Parameters

##### template - TemplateBuilder\<TModel>

The template [TemplateBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/templatebuilder)

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

### Width(System.Int32)

Sets the width of the grid.

#### Parameters

##### pixelWidth - `System.Int32`

The width of the Grid

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);
                })
                .Width(300px)
                .Scrollable()
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )
              
```

### Width(System.String)

Sets the width of the grid.

#### Parameters

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

The width of the Grid

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);
                })
                .Width("300px")
                .Scrollable()
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )
              
```

### Height(System.Int32)

Sets the height of the grid.

#### Parameters

##### pixelHeight - `System.Int32`

The height of the grid. Numeric values are treated as pixels.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<OrderViewModel>()
                 .Name("grid")
                 .Columns(columns =>
                 {
                     columns.Bound(p => p.OrderID).Filterable(false);
                     columns.Bound(p => p.Freight);
                 })
                 .Height(400)
                 .Pageable()
                 .DataSource(dataSource => dataSource
                     .Ajax()
                     .PageSize(10)
                     .Read(read => read.Action("Orders_Read", "Grid"))
                 )
             )
             
```

### Height(System.String)

Sets the height of the grid.

#### Parameters

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

The height of the grid.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<OrderViewModel>()
                 .Name("grid")
                 .Columns(columns =>
                 {
                     columns.Bound(p => p.OrderID).Filterable(false);
                     columns.Bound(p => p.Freight);
                 })
                 .Height("400px")
                 .Pageable()
                 .DataSource(dataSource => dataSource
                     .Ajax()
                     .PageSize(10)
                     .Read(read => read.Action("Orders_Read", "Grid"))
                 )
             )
             
```

### Messages(System.Action)

Configures the grid messages.

#### Parameters

##### configurator - System.Action<[GridMessagesBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridmessagesbuilder)>

Defines the text of the messages used by the Grid

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
            @(Html.Kendo().Grid<OrderViewModel>()
                .Name("grid")
                .Columns(columns =>
                {
                    columns.Bound(p => p.OrderID).Filterable(false);
                    columns.Bound(p => p.Freight);
                })
                .Messages(m => m.ExpandCollapseColumnHeader("E/C"))
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Read(read => read.Action("Orders_Read", "Grid"))
                )
            )
              
```

### Size(System.Nullable)

Sets the size of the grid.

#### Parameters

##### value - System.Nullable<[ComponentSize](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/componentsize)>

The size of the grid.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<OrderViewModel>()
                 .Name("grid")
                 .Columns(columns =>
                 {
                     columns.Bound(p => p.OrderID).Filterable(false);
                     columns.Bound(p => p.Freight);
                 })
                 .Size(ComponentSize.Small)
                 .Pageable()
                 .DataSource(dataSource => dataSource
                     .Ajax()
                     .PageSize(10)
                     .Read(read => read.Action("Orders_Read", "Grid"))
                 )
             )
             
```

### PrefixUrlParameters(System.Boolean)

If set to true the grid will prefix the query string parameters with its name. The default value is false.

#### Parameters

##### prefix - `System.Boolean`

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance for method chaining.

#### Example

```
 
             @(Html.Kendo().Grid<OrderViewModel>()
                 .Name("grid")
                 .PrefixUrlParameters(true)
                 .Columns(columns =>
                 {
                     columns.Bound(p => p.OrderID).Filterable(false);
                     columns.Bound(p => p.Freight);
                 })
                 .Size(ComponentSize.Small)
                 .Pageable()
                 .DataSource(dataSource => dataSource
                     .Ajax()
                     .PageSize(10)
                     .Read(read => read.Action("Orders_Read", "Grid"))
                 )
             )
             
```

### AI(System.Action)

Defines the configuration options for the AI tools in the Grid.

#### Parameters

##### configurator - System.Action<[GridAiSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridaisettingsbuilder)>

The configurator for the ai setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### AllowCopy(System.Action)

If set to true and selection of the Grid is enabled, the user could copy the selection into the clipboard and paste it into Excel or other similar programs that understand TSV/CSV formats. By default allowCopy is disabled and the default format is TSV. Can be set to a JavaScript object which represents the allowCopy configuration.

#### Parameters

##### configurator - System.Action<[GridAllowCopySettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridallowcopysettingsbuilder)>

The configurator for the allowcopy setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### AllowCopy()

If set to true and selection of the Grid is enabled, the user could copy the selection into the clipboard and paste it into Excel or other similar programs that understand TSV/CSV formats. By default allowCopy is disabled and the default format is TSV. Can be set to a JavaScript object which represents the allowCopy configuration.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### AllowCopy(System.Boolean)

If set to true and selection of the Grid is enabled, the user could copy the selection into the clipboard and paste it into Excel or other similar programs that understand TSV/CSV formats. By default allowCopy is disabled and the default format is TSV. Can be set to a JavaScript object which represents the allowCopy configuration.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the allowcopy option.

#### RETURNS

Returns the current instance of [GridAllowCopySettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridallowcopysettingsbuilder) .

### AllowPaste(System.Boolean)

If set to true and the selection functionality of the Grid is enabled, the user can paste the current textual content of the clipboard into the Grid.

#### Parameters

##### value - `System.Boolean`

The value for AllowPaste

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### AllowPaste()

If set to true and the selection functionality of the Grid is enabled, the user can paste the current textual content of the clipboard into the Grid.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### AutoBind(System.Boolean)

If set to false, the Grid will not bind to the data source during initialization, i.e. it will not call the fetch method of the dataSource instance. In such scenarios data binding will occur when the change event of the dataSource instance is fired. By default, autoBind is set to true and the widget will bind to the data source specified in the configuration.

#### Parameters

##### value - `System.Boolean`

The value for AutoBind

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### ColumnResizeHandleWidth(System.Double)

Defines the width of the column resize handle in pixels. Apply a larger value for easier grasping.

#### Parameters

##### value - `System.Double`

The value for ColumnResizeHandleWidth

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### ColumnMenu(System.Action)

If set to true the grid will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled). By default the column menu is not enabled.Can be set to a JavaScript object which represents the column menu configuration.

#### Parameters

##### configurator - System.Action<[GridColumnMenuSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcolumnmenusettingsbuilder)>

The configurator for the columnmenu setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### ColumnMenu()

If set to true the grid will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled). By default the column menu is not enabled.Can be set to a JavaScript object which represents the column menu configuration.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### ColumnMenu(System.Boolean)

If set to true the grid will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled). By default the column menu is not enabled.Can be set to a JavaScript object which represents the column menu configuration.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the columnmenu option.

#### RETURNS

Returns the current instance of [GridColumnMenuSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridcolumnmenusettingsbuilder) .

### EncodeTitles(System.Boolean)

If set to true the column title will be HTML-encoded before it is displayed. If set to false the column title will be displayed as is.

#### Parameters

##### value - `System.Boolean`

The value for EncodeTitles

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### EncodeTitles()

If set to true the column title will be HTML-encoded before it is displayed. If set to false the column title will be displayed as is.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### Excel(System.Action)

Configures the Kendo UI Grid Excel export settings.

#### Parameters

##### configurator - System.Action<[GridExcelSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridexcelsettingsbuilder)>

The configurator for the excel setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Groupable(System.Action)

If set to true the user could group the grid by dragging the column header cells. By default grouping is disabled.Can be set to a JavaScript object which represents the grouping configuration.

#### Parameters

##### configurator - System.Action<[GridGroupableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridgroupablesettingsbuilder)>

The configurator for the groupable setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Groupable()

If set to true the user could group the grid by dragging the column header cells. By default grouping is disabled.Can be set to a JavaScript object which represents the grouping configuration.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Groupable(System.Boolean)

If set to true the user could group the grid by dragging the column header cells. By default grouping is disabled.Can be set to a JavaScript object which represents the grouping configuration.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the groupable option.

#### RETURNS

Returns the current instance of [GridGroupableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridgroupablesettingsbuilder) .

### Navigatable(System.Boolean)

If set to true the user could navigate the component using the keyboard navigation. By default keyboard navigation is disabled.

#### Parameters

##### value - `System.Boolean`

The value for Navigatable

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### Navigatable()

If set to true the user could navigate the component using the keyboard navigation. By default keyboard navigation is disabled.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### NoRecords(System.Action)

If set to true and current view contains no records, message similar to "No records available" will be displayed. By default this option is disabled.

#### Parameters

##### configurator - System.Action<[GridNoRecordsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridnorecordssettingsbuilder)>

The configurator for the norecords setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### NoRecords()

If set to true and current view contains no records, message similar to "No records available" will be displayed. By default this option is disabled.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### NoRecords(System.Boolean)

If set to true and current view contains no records, message similar to "No records available" will be displayed. By default this option is disabled.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the norecords option.

#### RETURNS

Returns the current instance of [GridNoRecordsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridnorecordssettingsbuilder) .

### Pdf(System.Action)

Configures the Kendo UI Grid PDF export settings.

#### Parameters

##### configurator - System.Action<[GridPdfSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridpdfsettingsbuilder)>

The configurator for the pdf setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Pinnable(System.Action)

Enables row pinning for the Grid. When enabled, rows can be pinned to the top or bottom of the Grid so they remain visible while scrolling through the remaining data. Pinned rows are rendered in dedicated containers above and below the scrollable content area.The pinnable option can be set to true to enable the feature without initially pinned rows, or to an object specifying which rows to pin by their ID values.

#### Parameters

##### configurator - System.Action<[GridPinnableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridpinnablesettingsbuilder)>

The configurator for the pinnable setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Pinnable()

Enables row pinning for the Grid. When enabled, rows can be pinned to the top or bottom of the Grid so they remain visible while scrolling through the remaining data. Pinned rows are rendered in dedicated containers above and below the scrollable content area.The pinnable option can be set to true to enable the feature without initially pinned rows, or to an object specifying which rows to pin by their ID values.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Pinnable(System.Boolean)

Enables row pinning for the Grid. When enabled, rows can be pinned to the top or bottom of the Grid so they remain visible while scrolling through the remaining data. Pinned rows are rendered in dedicated containers above and below the scrollable content area.The pinnable option can be set to true to enable the feature without initially pinned rows, or to an object specifying which rows to pin by their ID values.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the pinnable option.

#### RETURNS

Returns the current instance of [GridPinnableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridpinnablesettingsbuilder) .

### PinnedRowTemplateHandler(System.String)

A function that allows customizing the rendering of pinned rows. The function receives an object with two fields: dataItem (the data item for the row) and row (the default HTML string for the row). The function must return an HTML string.If not set, pinned rows use the same template as regular rows.

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for PinnedRowTemplate

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

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

A function that allows customizing the rendering of pinned rows. The function receives an object with two fields: dataItem (the data item for the row) and row (the default HTML string for the row). The function must return an HTML string.If not set, pinned rows use the same template as regular rows.

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the pinnedrowtemplate.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### PersistSelection(System.Boolean)

Sets a value indicating whether the selection will be persisted when sorting, paging, filtering and etc are performed.

#### Parameters

##### value - `System.Boolean`

The value for PersistSelection

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### PersistSelection()

Sets a value indicating whether the selection will be persisted when sorting, paging, filtering and etc are performed.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### Search(System.Action)

Configures the Kendo UI Grid search bar settings.

#### Parameters

##### configurator - System.Action<[GridSearchSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsearchsettingsbuilder)>

The configurator for the search setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### SmartBox(System.Action)

Defines the configuration options for the SmartBox tool in the Grid. The SmartBox provides a unified interface for search, semantic search, and AI assistant capabilities.

#### Parameters

##### configurator - System.Action<[GridSmartBoxSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsmartboxsettingsbuilder)>

The configurator for the smartbox setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Sortable(System.Action)

If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.

#### Parameters

##### configurator - System.Action<[GridSortableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsortablesettingsbuilder)>

The configurator for the sortable setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Sortable()

If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### Sortable(System.Boolean)

If set to true the user could sort the grid by clicking the column header cells. By default sorting is disabled.Can be set to a JavaScript object which represents the sorting configuration.

#### Parameters

##### enabled - `System.Boolean`

Enables or disables the sortable option.

#### RETURNS

Returns the current instance of [GridSortableSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridsortablesettingsbuilder) .

### StackedLayoutSettings(System.Action)

The stacked layout settings of the Grid.

#### Parameters

##### configurator - System.Action<[GridStackedLayoutSettingsSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridstackedlayoutsettingssettingsbuilder)>

The configurator for the stackedlayoutsettings setting.

#### RETURNS

Returns the current instance of [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) .

### StatusBarTemplateHandler(System.String)

The template which renders the Status Bar/Aggregates Bar.

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for StatusBarTemplate

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

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

The template which renders the Status Bar/Aggregates Bar.

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the statusbartemplate.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### LoaderType(Kendo.Mvc.UI.GridLoaderType)

Defines the type of the loader that will be displayed while loading the data

#### Parameters

##### value - [GridLoaderType](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/gridloadertype)

The value for LoaderType

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### AdaptiveMode(Kendo.Mvc.UI.AdaptiveMode)

Specifies the adaptive rendering of the component.

#### Parameters

##### value - [AdaptiveMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/adaptivemode)

The value for AdaptiveMode

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### DataLayoutMode(Kendo.Mvc.UI.DataLayoutMode)

Defines the data layout mode of the grid.

#### Parameters

##### value - [DataLayoutMode](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/datalayoutmode)

The value for DataLayoutMode

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

### Events(System.Action)

Configures the client-side events.

#### Parameters

##### configurator - System.Action<[GridEventBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/grideventbuilder)>

The client events action.

#### RETURNS

Returns the current [GridBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/gridbuilder) instance.

#### Example

```
 
            @(Html.Kendo().Grid()
                  .Name("Grid")
                  .Events(events => events
                      .BeforeEdit("onBeforeEdit")
                  )
            )
             
```

### ToComponent()

Returns the internal view component.

#### RETURNS

The  instance that represents the component.

### Expression(System.String)

Sets the name of the component.

#### Parameters

##### modelExpression - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

#### Parameters

##### modelExplorer - `Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer`

The name.

#### RETURNS

Returns the current  instance.

### Name(System.String)

Sets the name of the component.

#### Parameters

##### componentName - `System.String`

The name.

#### RETURNS

Returns the current  instance.

### Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean,System.Boolean)

#### Parameters

##### deferred - `System.Boolean`

#### RETURNS

Returns a [DeferredWidgetBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/deferredwidgetbuilder) instance.

### HtmlAttributes(System.Object)

Sets the HTML attributes.

#### Parameters

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

The HTML attributes.

#### RETURNS

Returns the current  instance.

### 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.

### ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

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

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

#### Parameters

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

The JavaScript attributes.

##### overrideAttributes - `System.Boolean`

Argument which determines whether attributes should be overriden.

#### RETURNS

Returns the current  instance.

### Render()

Renders the component in place.

### ToHtmlString()

Returns the HTML representation of the component.

### WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

#### Parameters

##### writer - `System.IO.TextWriter`

##### encoder - `System.Text.Encodings.Web.HtmlEncoder`

### ToClientTemplate()

Returns the client template for the component.

### AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

#### Parameters

##### value - `System.Boolean`

#### RETURNS

Returns the current  instance.
