GridColumnMenuSettingsBuilder
Methods
Messages(System.Action)
Enables you to define custom messages in grid column menu.
Parameters
configurator - System.Action<GridColumnMenuMessagesBuilder>
Example
@(Html.Kendo().Grid(Model)
.Name("Grid")
.ColumnMenu(menu => menu.Messages(msg => msg.Filter("Custom filter message")))
)
Enabled(System.Boolean)
Enables/disables header column menu.
Parameters
value - System.Boolean
If true, enables the header column menu.
Example
@(Html.Kendo().Grid(Model)
.Name("Grid")
.ColumnMenu(menu => menu.Enabled((bool)ViewData["enableColumnMenu"]))
)
AutoSize(System.Boolean)
If set to true the column menu would allow the user to fit one or all columns to the width of their content. This setting is available only when the tabbed componentType is used.
Parameters
value - System.Boolean
The value for AutoSize
RETURNS
Returns the current GridColumnMenuSettingsBuilder instance.
AutoSize()
If set to true the column menu would allow the user to fit one or all columns to the width of their content. This setting is available only when the tabbed componentType is used.
RETURNS
Returns the current GridColumnMenuSettingsBuilder instance.
Columns(System.Action)
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<GridColumnMenuColumnsSettingsBuilder>
The configurator for the columns setting.
RETURNS
Returns the current instance of GridColumnMenuSettingsBuilder .
Columns(System.Boolean)
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
enabled - System.Boolean
Enables or disables the columns option.
RETURNS
Returns the current instance of GridColumnMenuColumnsSettingsBuilder .
Filterable(System.Boolean)
If set to true the column menu would allow the user to filter the grid. By default the column menu allows the user to filter if filtering is enabled via the filterable.
Parameters
value - System.Boolean
The value for Filterable
RETURNS
Returns the current GridColumnMenuSettingsBuilder instance.
ComponentType(System.String)
Specifies the component type of the column menu. "classic" - Uses the standard rendering of the column menu.; "modern" - Uses new rendering with a fresh and modern look and feel. or "tabbed" - Uses the rendering of the "modern" menu, but splits its content into different tabs..
Parameters
value - System.String
The value for ComponentType
RETURNS
Returns the current GridColumnMenuSettingsBuilder instance.
ClearAllFilters(System.Boolean)
If set to true, the global column menu will render a button to allow the user to clear all filters applied to the grid.
Parameters
value - System.Boolean
The value for ClearAllFilters
RETURNS
Returns the current GridColumnMenuSettingsBuilder instance.
ClearAllFilters()
If set to true, the global column menu will render a button to allow the user to clear all filters applied to the grid.
RETURNS
Returns the current GridColumnMenuSettingsBuilder instance.
Sortable(System.Boolean)
If set to true the column menu would allow the user to sort the grid by the column field. By default the column menu allows the user to sort if sorting is enabled via the sortable option.
Parameters
value - System.Boolean
The value for Sortable
RETURNS
Returns the current GridColumnMenuSettingsBuilder instance.
AdaptiveMode(Kendo.Mvc.UI.AdaptiveMode)
Specifies the adaptive rendering of the component.
Parameters
value - AdaptiveMode
The value for AdaptiveMode
RETURNS
Returns the current GridColumnMenuSettingsBuilder instance.