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

Kendo UI noData TagHelper ChartNoDataSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("no-data", ParentTag = "kendo-chart", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("no-data", ParentTag = "kendo-stockchart", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("no-data-template", new string[] { })]
[SuppressTagRendering]
public class ChartNoDataSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperChildBaseChartNoDataSettingsTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

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-chart name="chart">
    <no-data enabled="true" />
</kendo-chart>

Constructors

Initializes a new instance of the ChartNoDataSettingsTagHelper class.

C#
public ChartNoDataSettingsTagHelper()

Properties

Enables or disables the configuration.

C#
public bool? Enabled { get; set; }

The template which is rendered when no series are defined, or all series are empty.The message overlays the entire Chart with the exception of the Title and Subtitle.

C#
public string Template { get; set; }

The template which is rendered when no series are defined, or all series are empty.The message overlays the entire Chart with the exception of the Title and Subtitle. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string TemplateHandler { get; set; }

The template which is rendered when no series are defined, or all series are empty.The message overlays the entire Chart with the exception of the Title and Subtitle. This option expects the ID of the script element that contains the template.

C#
public string TemplateId { get; set; }

Configures the templates for the ActionSheet.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

The template which is rendered when no series are defined, or all series are empty.The message overlays the entire Chart with the exception of the Title and Subtitle. This option expects the IHtmlContent instance containing the created HTML.

C#
public IHtmlContent TemplateView { 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>