Defines the fluent interface for configuring ColumnMenu.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class GridColumnMenuSettingsBuilder
Inheritance: objectGridColumnMenuSettingsBuilder
Inherited Members
Constructors
Initializes a new instance of the GridColumnMenuSettings class.
public GridColumnMenuSettingsBuilder(GridColumnMenuSettings settings)
The settings.
Methods
Specifies the adaptive rendering of the component.
public GridColumnMenuSettingsBuilder AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns: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.
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.
public GridColumnMenuSettingsBuilder AutoSize(bool value)
The value for AutoSize
Returns:If set to 'true', the global column menu will render a button to allow the user to clear all filters applied to the grid.
If set to 'true', the global column menu will render a button to allow the user to clear all filters applied to the grid.
public GridColumnMenuSettingsBuilder ClearAllFilters(bool value)
The value for ClearAllFilters
Returns: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.
public GridColumnMenuSettingsBuilder Columns(Action<GridColumnMenuColumnsSettingsBuilder> configurator)
The configurator for the columns setting.
Returns:Enables/disables columns section in header column menu.
public GridColumnMenuSettingsBuilder Columns(bool value)
If true, enables the columns section in the column menu
Returns:The Enabled method is useful when you need to enable/disable columns section in column menu based on certain conditions.
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..
public GridColumnMenuSettingsBuilder ComponentType(string value)
The value for ComponentType
Returns:Enables/disables header column menu.
public GridColumnMenuSettingsBuilder Enabled(bool value)
If true, enables the ColumnMenu.
Returns:The Enabled method is useful when you need to enable column menu based on certain conditions.
Enables/disables filter section in header column menu.
public GridColumnMenuSettingsBuilder Filterable(bool value)
If true, enables filtering.
Returns:The Enabled method is useful when you need to enable/disable filter section in column menu based on certain conditions.
Enables you to define custom messages in grid column menu.
public GridColumnMenuSettingsBuilder Messages(Action<ColumnMenuMessagesBuilder> configurator)
Enables/disables sort section in header column menu.
public GridColumnMenuSettingsBuilder Sortable(bool value)
If true, enables sorting.
Returns:The Enabled method is useful when you need to enable/disable sort section in column menu based on certain conditions.