Kendo.Mvc.UI.Fluent.GridColumnMenuSettingsBuilder
Defines the fluent interface for configuring ColumnMenu.
Methods
Enabled(System.Boolean)
Enables/disables header column menu.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.ColumnMenu(menu => menu.Enabled((bool)ViewData["enableColumnMenu"]))
%>
Sortable(System.Boolean)
Enables/disables sort section in header column menu.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.ColumnMenu(menu => menu.Sortable((bool)ViewData["enableSort"]))
%>
Filterable(System.Boolean)
Enables/disables filter section in header column menu.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.ColumnMenu(menu => menu.Filterable((bool)ViewData["enableFilter"]))
%>
Columns(System.Boolean)
Enables/disables columns section in header column menu.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.ColumnMenu(menu => menu.Columns((bool)ViewData["enableColumns"]))
%>
Columns(System.Action<Kendo.Mvc.UI.Fluent.GridColumnMenuColumnsSettingsBuilder>)
If set to true the column menu would allow the user to select (show and hide) grid columns. By default the column menu allows column selection.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.GridColumnMenuColumnsSettingsBuilder>
The configurator for the columns setting.
Messages(System.Action<Kendo.Mvc.UI.Fluent.ColumnMenuMessagesBuilder>)
Enables you to define custom messages in grid column menu.
Example (ASPX)
<%= Html.Kendo().Grid(Model)
.Name("Grid")
.ColumnMenu(menu => menu.Messages(msg => msg.Filter("Custom filter message")))
%>
ComponentType(System.String)
Specifies the component type of the column menu. "classic" - Uses the standard rendering of the column menu. or "modern" - Uses new rendering with a fresh and modern look and feel..
Parameters
value System.String
The value for ComponentType