Kendo UI columnMenu TagHelper GridColumnMenuSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("column-menu", ParentTag = "kendo-grid", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("messages", new string[] { "column-menu-columns" })]
[SuppressTagRendering]
public class GridColumnMenuSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseGridColumnMenuSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<column-menu adaptive-mode="AdaptiveMode.Auto"></column-menu>
</kendo-grid>
Child Tags
Constructors
Initializes a new instance of the GridColumnMenuSettingsTagHelper class.
public GridColumnMenuSettingsTagHelper()
Properties
Specifies the adaptive rendering of the component.
public AdaptiveMode? AdaptiveMode { get; set; }
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 bool? AutoSize { get; set; }
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 bool? ClearAllFilters { get; set; }
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 string ComponentType { get; set; }
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 bool? Filterable { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.