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

ColumnMenuMessagesBuilder

Methods

Filter(System.String)

Enables you to define custom messages in grid column menu.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.Filter("Custom filter message")))
            )

Columns(System.String)

Sets the text displayed for columns menu option.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.Columns("Custom columns message")))
            )

SetColumnPosition(System.String)

Sets the text displayed for the column position item.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.SetColumnPosition("Custom column position message")))
            )

SortAscending(System.String)

Sets the text displayed for sort ascending menu option.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.SortAscending("Custom sort message")))
            )

SortDescending(System.String)

Sets the text displayed for sort descending menu option.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.SortDescending("Custom sort message")))
            )

ColumnSettings(System.String)

Sets the text displayed for menu header.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.ColumnSettings("Custom menu header message")))
            )

Lock(System.String)

Sets the text message displayed in the column menu for locking a column.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.Lock("Custom lock message")))
            )

Unlock(System.String)

Sets the text message displayed in the column menu for unlocking a column.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.Unlock("Custom unlock message")))
            )

Stick(System.String)

Sets the text message displayed in the column menu for sticking a column.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.Stick("Custom stick message")))
            )

Unstick(System.String)

Sets the text message displayed in the column menu for unsticking a column.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.Unstick("Custom unstick message")))
            )

Apply(System.String)

Sets the text message displayed in the apply button.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.Apply("Custom apply message")))
            )

Reset(System.String)

Sets the text message displayed in the reset button.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.Reset("Custom reset message")))
            )

ButtonTitle(System.String)

The title of the button that displays the ColumnMenu.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(msg => msg.ButtonTitle("Custom title message")))
            )

AutoSizeColumn(System.String)

Sets the text of the AutoSizeColumn button.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(m => m.AutoSizeColumn("MyMessage")))
            )

AutoSizeAllColumns(System.String)

Sets the text of the AutoSizeAllColumns button.

Parameters

message - System.String

The message

Example


             @(Html.Kendo().Grid(Model)
                        .Name("Grid")
                        .ColumnMenu(menu => menu.Messages(m => m.AutoSizeAllColumns("MyMessage")))
            )

In this article
Not finding the help you need?