PivotGridTagHelper
Kendo UI PivotGrid TagHelper PivotGridTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-pivotgrid")]
[RestrictChildren("excel", new string[] { "pdf", "sortable", "messages", "pivot-datasource" })]
public class PivotGridTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IDataBoundWidget<PivotDataSourceTagHelper>, ITemplateComponent
Inheritance: objectTagHelperTagHelperBasePivotGridTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-pivotdatasource type=@(PivotDataSourceType.Xmla) name="pivotSource">
<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>
<schema type="xmla"/>
<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>
</kendo-pivotdatasource>
<kendo-pivotconfigurator name="configurator"
filterable="true"
height="570"
datasource-id="pivotSource">
</kendo-pivotconfigurator>
<kendo-pivotgrid name="pivotgrid"
filterable="true"
column-width="200"
height="570"
datasource-id="pivotSource">
<sortable enabled="true" />
</kendo-pivotgrid>
Child Tags
Constructors
Initializes a new instance of the PivotGridTagHelper class.
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 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 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 DatacellTemplate { 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 DatacellTemplateId { get; set; }
The Id of the data source.
public string DatasourceId { get; set; }
If set to true the user will be able to filter by using the field menu.
public bool? Filterable { get; set; }
The height of the PivotGrid. 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. For information about the tuple structure check this link. About the data item structure review this help topic.
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. For information about the tuple structure check this link. About the data item structure review this help topic. 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. For information about the tuple structure check this link. About the data item structure review this help topic. 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. For information about the tuple structure check this link. About the data item structure review this help topic. 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. For information about the tuple structure check this link. About the data item structure review this help topic.
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. For information about the tuple structure check this link. About the data item structure review this help topic. 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. For information about the tuple structure check this link. About the data item structure review this help topic. 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. For information about the tuple structure check this link. About the data item structure review this help topic. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent KpiTrendTemplateView { 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 excelExport event. Fired when saveAsExcel method is called.
public string OnExcelExport { 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; }
If set to false the user will not be able to add/close/reorder current fields for columns/rows/measures.
public bool? Reorderable { 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 PivotGrid.
[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: