PivotGridV2TagHelper
Kendo UI PivotGridV2 TagHelper PivotGridV2TagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-pivotgridv2")]
[RestrictChildren("pdf", new string[] { "pivot-datasource", "excel" })]
public class PivotGridV2TagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IDataBoundWidget<PivotDataSourceV2TagHelper>, ITemplateComponent
Inheritance: objectTagHelperTagHelperBasePivotGridV2TagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-pivotconfiguratorv2 name="configurator" sortable="true" filterable="true" height="570">
</kendo-pivotconfiguratorv2>
<kendo-pivotgridv2 name="pivotgrid" column-width="200" height="570" configurator="#configurator">
<pivot-datasource type="PivotDataSourceType.Xmla">
<columns>
<pivot-datasource-column name="[Date].[Calendar]" expand="true"></pivot-datasource-column>
<pivot-datasource-column name="[Product].[Category]"></pivot-datasource-column>
</columns>
<rows>
<row name="[Geography].[City]"></row>
</rows>
<measures values=@(new string[] {"[Measures].[Reseller Freight Cost]"} )></measures>
<transport read-url="https://demos.telerik.com/service/v2/olap/msmdpump.dll" datatype="text" content-type="text/xml" type="POST">
<connection catalog="Adventure Works DW 2008R2" cube="Adventure Works"></connection>
</transport>
</pivot-datasource>
</kendo-pivotgridv2>
Child Tags
Constructors
Initializes a new instance of the PivotGridV2TagHelper class.
public PivotGridV2TagHelper(IKendoHtmlGenerator generator)
Properties
If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.
public bool? AutoBind { get; set; }
The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. For information about the tuple structure check this link. About the data item structure review this help topic.
public string CellTemplate { get; set; }
CellTemplateHandler member.
public string CellTemplateHandler { get; set; }
The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. For information about the tuple structure check this link. About the data item structure review this help topic.
public string CellTemplateId { get; set; }
The template which renders the content of the data cell. By default renders the formatted value (fmtValue) of the data item.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. For information about the tuple structure check this link. About the data item structure review this help topic.
public IHtmlContent CellTemplateView { get; set; }
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link.
public string ColumnHeaderTemplate { get; set; }
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link. This option expects the name of a JavaScript function that will be called to return the template.
public string ColumnHeaderTemplateHandler { get; set; }
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link. This option expects the ID of the script element that contains the template.
public string ColumnHeaderTemplateId { get; set; }
The template which renders the content of the column header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding column header cell or tuple - the tuple of the corresponding column header cell. For information about the tuple structure check this link. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent ColumnHeaderTemplateView { get; set; }
The width of the table columns. Value is treated as pixels.
public double? ColumnWidth { get; set; }
The Id of PivotConfiguratorV2.
public string Configurator { get; set; }
The Id of the data source.
public string DatasourceId { get; set; }
The height of the PivotGridV2. Numeric values are treated as pixels.
public double? Height { get; set; }
The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself.
public string KpiStatusTemplate { get; set; }
The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. This option expects the name of a JavaScript function that will be called to return the template.
public string KpiStatusTemplateHandler { get; set; }
The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. This option expects the ID of the script element that contains the template.
public string KpiStatusTemplateId { get; set; }
The template which renders the content of the KPI Status value. By default renders "open", "hold" and "denied" status icons.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent KpiStatusTemplateView { get; set; }
The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself.
public string KpiTrendTemplate { get; set; }
The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. This option expects the name of a JavaScript function that will be called to return the template.
public string KpiTrendTemplateHandler { get; set; }
The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. This option expects the ID of the script element that contains the template.
public string KpiTrendTemplateId { get; set; }
The template which renders the content of the KPI Trend value. By default renders "increase", "decrease" and "equal" status icons.The fields which can be used in the template are: columnTuple - the tuple of the corresponding column header cell; rowTuple - the tuple of the corresponding row header cell; measure - the value of the data cell measure or dataItem - the data item itself. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent KpiTrendTemplateView { get; set; }
If set to true the user could navigate the component using the keyboard navigation. By default keyboard navigation is disabled.
public bool? Navigatable { get; set; }
The name of the JavaScript function that will handle the collapseMember event. Fired before column or row field is collapsed.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnCollapseMember { get; set; }
The name of the JavaScript function that will handle the dataBinding event. Fired before the widget binds to its data source.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnDataBinding { get; set; }
The name of the JavaScript function that will handle the dataBound event. Fired after the widget is bound to the data from its data source.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnDataBound { get; set; }
The name of the JavaScript function that will handle the expandMember event. Fired before column or row field is expanded.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnExpandMember { get; set; }
The name of the JavaScript function that will handle the pdfExport event. Fired when the user clicks the "Export to PDF" toolbar button.
public string OnPdfExport { get; set; }
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link.
public string RowHeaderTemplate { get; set; }
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link. This option expects the name of a JavaScript function that will be called to return the template.
public string RowHeaderTemplateHandler { get; set; }
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link. This option expects the ID of the script element that contains the template.
public string RowHeaderTemplateId { get; set; }
The template which renders the content of the row header cell. By default it renders the caption of the tuple member.The fields which can be used in the template are: member - the member of the corresponding row header cell or tuple - the tuple of the corresponding row header cell. For information about the tuple structure check this link. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent RowHeaderTemplateView { get; set; }
Configures the templates for the PivotGridV2.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Serializes the defined templates.
protected override Dictionary<string, object> SerializeTemplates()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: