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

Provides a fluent interface for configuring Grid command messages.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class GridMessagesCommandsSettingsBuilder

Inheritance: objectGridMessagesCommandsSettingsBuilder

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 GridMessagesCommandsSettingsBuilder class.

C#
public GridMessagesCommandsSettingsBuilder(GridMessagesCommandsSettings settings)
Parameters:settingsGridMessagesCommandsSettings

The settings to configure.

Methods

Sets the text of the Add title that is rendered in the ActionSheet when adding a new record and adaptive mode is set to auto.

C#
public GridMessagesCommandsSettingsBuilder Add(string value)
Parameters:valuestring

The Add title text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Add("New record")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Cancel Changes" button located in the toolbar of the widget.

C#
public GridMessagesCommandsSettingsBuilder Cancel(string value)
Parameters:valuestring

The cancel changes button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Cancel("Discard Changes")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Cancel" button that is rendered in inline or popup editing mode.

C#
public GridMessagesCommandsSettingsBuilder CancelEdit(string value)
Parameters:valuestring

The cancel edit button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.CancelEdit("Dismiss")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "ColumnChooser" button.

C#
public GridMessagesCommandsSettingsBuilder ColumnChooser(string value)
Parameters:valuestring

The column chooser button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.ColumnChooser("Choose columns")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the create button located in the toolbar of the widget.

C#
public GridMessagesCommandsSettingsBuilder Create(string value)
Parameters:valuestring

The create button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Create("Add new record")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Delete" button rendered in inline or popup editing mode.

C#
public GridMessagesCommandsSettingsBuilder Destroy(string value)
Parameters:valuestring

The destroy button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Destroy("Remove")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Edit" button that is rendered in inline or popup editing mode.

C#
public GridMessagesCommandsSettingsBuilder Edit(string value)
Parameters:valuestring

The edit button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Edit("Modify")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Export to Excel" button of the grid toolbar.

C#
public GridMessagesCommandsSettingsBuilder Excel(string value)
Parameters:valuestring

The Excel button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Excel("Export to Excel")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Filter" button.

C#
public GridMessagesCommandsSettingsBuilder Filter(string value)
Parameters:valuestring

The filter button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Filter("Apply filter")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Group" button.

C#
public GridMessagesCommandsSettingsBuilder Group(string value)
Parameters:valuestring

The group button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Group("Group records")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Save Changes" button located in the toolbar of the widget.

C#
public GridMessagesCommandsSettingsBuilder Save(string value)
Parameters:valuestring

The save changes button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Save("Save all changes")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the placeholder text in the grid search panel.

C#
public GridMessagesCommandsSettingsBuilder Search(string value)
Parameters:valuestring

The search placeholder text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Search("Search...")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the label of the "SelectAll" checkbox.

C#
public GridMessagesCommandsSettingsBuilder SelectAll(string value)
Parameters:valuestring

The select all label text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.SelectAll("Select all items")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Sort" button.

C#
public GridMessagesCommandsSettingsBuilder Sort(string value)
Parameters:valuestring

The sort button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Sort("Sort records")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)

Sets the text of the "Update" button that is rendered in inline or popup editing mode.

C#
public GridMessagesCommandsSettingsBuilder Update(string value)
Parameters:valuestring

The update button text.

Returns:

GridMessagesCommandsSettingsBuilder

The current GridMessagesCommandsSettingsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.OrderID).Filterable(false);
columns.Bound(p => p.Freight);
})
.Messages(m => m.Commands(c => c.Update("Apply")))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Read(read => read.Action("Orders_Read", "Grid"))
)
)