Kendo UI messages TagHelper GridMessagesSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("messages", ParentTag = "kendo-grid", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("commands", new string[] { "apply-buttons", "clear-buttons", "details", "ai" })]
[SuppressTagRendering]
public class GridMessagesSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseGridMessagesSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-grid name="grid">
<messages>
<ai error="Error occurred" invalid-selection="Invalid selection" output-placeholder="Output here" prompt-placeholder="Enter prompt" success="Operation successful" />
</messages>
</kendo-grid>
Child Tags
Constructors
Initializes a new instance of the GridMessagesSettingsTagHelper class.
public GridMessagesSettingsTagHelper()
Properties
Allows the customization of the text in the column header for the expand or collapse columns. Sets the value to make the widget compliant with the web accessibility standards.
public string ExpandCollapseColumnHeader { get; set; }
The text that will be used for the title attribute of all filter cells belonging to a filter row in the Grid.
public string FilterCellTitle { get; set; }
The text that will be used for the aria-lable attribute of the grouping header of the Grid.
public string GroupingHeaderLabel { get; set; }
Defines the text of the "noRecords" option that is rendered when no records are available in current view. The "noRecords" options should be set to true.
public string NoRecords { get; set; }
The text that will be used for the aria-lable attribute of the ToolBar of the Grid.
public string ToolbarLabel { 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.