New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI messages TagHelper GridMessagesSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[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: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@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>

Constructors

Initializes a new instance of the GridMessagesSettingsTagHelper class.

C#
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.

C#
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.

C#
public string FilterCellTitle { get; set; }

The text that will be used for the aria-lable attribute of the grouping header of the Grid.

C#
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.

C#
public string NoRecords { get; set; }

The text that will be used for the aria-lable attribute of the ToolBar of the Grid.

C#
public string ToolbarLabel { get; set; }

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>