Defines the fluent API for configuring GridColumnMenuSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class GridColumnMenuSettingsBuilder<T> where T : class
Inheritance: objectGridColumnMenuSettingsBuilder<T>
Inherited Members
Constructors
Initializes a new instance of the GridColumnMenuSettingsBuilder<T> class.
public GridColumnMenuSettingsBuilder(GridColumnMenuSettings<T> container)
Properties
Gets or sets the Container.
protected GridColumnMenuSettings<T> Container { get; }
Methods
Specifies the adaptive rendering of the component.
public GridColumnMenuSettingsBuilder<T> AdaptiveMode(AdaptiveMode value)
The value for AdaptiveMode
Returns:GridColumnMenuSettingsBuilder<T>
Returns the current GridColumnMenuSettingsBuilder<T> instance.
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<T> AutoSize()
GridColumnMenuSettingsBuilder<T>
Returns the current GridColumnMenuSettingsBuilder<T> instance.
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<T> AutoSize(bool value)
The value for AutoSize
Returns:GridColumnMenuSettingsBuilder<T>
Returns the current GridColumnMenuSettingsBuilder<T> instance.
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<T> ClearAllFilters()
GridColumnMenuSettingsBuilder<T>
Returns the current GridColumnMenuSettingsBuilder<T> instance.
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<T> ClearAllFilters(bool value)
The value for ClearAllFilters
Returns:GridColumnMenuSettingsBuilder<T>
Returns the current GridColumnMenuSettingsBuilder<T> instance.
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<T> Columns(Action<GridColumnMenuColumnsSettingsBuilder<T>> configurator)
The GridColumnMenuColumnsSettingsBuilder<T> for the columns setting.
Returns:GridColumnMenuSettingsBuilder<T>
Returns the current instance of GridColumnMenuSettingsBuilder<T> .
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<T> Columns(bool enabled)
Enables or disables the columns option.
Returns:GridColumnMenuSettingsBuilder<T>
Returns the current instance of GridColumnMenuColumnsSettingsBuilder<T> .
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<T> ComponentType(string value)
The value for ComponentType
Returns:GridColumnMenuSettingsBuilder<T>
Returns the current GridColumnMenuSettingsBuilder<T> instance.
Enables/disables header column menu.
public GridColumnMenuSettingsBuilder<T> Enabled(bool value)
If true, enables the header column menu.
Returns:The Enabled method is useful when you need to enable column menu based on certain conditions.
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.
public GridColumnMenuSettingsBuilder<T> Filterable(bool value)
The value for Filterable
Returns:GridColumnMenuSettingsBuilder<T>
Returns the current GridColumnMenuSettingsBuilder<T> instance.
Enables you to define custom messages in grid column menu.
public GridColumnMenuSettingsBuilder<T> Messages(Action<GridColumnMenuMessagesBuilder> configurator)
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.
public GridColumnMenuSettingsBuilder<T> Sortable(bool value)
The value for Sortable
Returns:GridColumnMenuSettingsBuilder<T>
Returns the current GridColumnMenuSettingsBuilder<T> instance.