Configures a kendo.data.PivotDataSource for standalone use or as the data source of a PivotGrid or PivotConfigurator.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-pivotdatasource")]
[HtmlTargetElement("pivot-datasource", ParentTag = "kendo-pivotgrid")]
[HtmlTargetElement("pivot-datasource", ParentTag = "kendo-pivotconfigurator")]
[RestrictChildren("columns", new string[] { "rows", "measures", "schema", "transport", "filters" })]
public class PivotDataSourceTagHelper : PivotDataSourceBaseTagHelper, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseDataSourceTagHelperPivotDataSourceBaseTagHelperPivotDataSourceTagHelper...
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
@model IEnumerable<MyModel>
<kendo-pivotdatasource name="pivotDataSource" data="@Model">
</kendo-pivotdatasource>
Child Tags
Constructors
Initializes a new instance of the PivotDataSourceTagHelper class.
public PivotDataSourceTagHelper(IKendoHtmlGenerator generator)
Properties
Gets or sets the data items supplied directly to the PivotDataSource. For flat data processed by a client-side cube, configure the corresponding schema metadata.
public IEnumerable Data { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SetDataSource method.
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: