New to Kendo UI for jQueryStart a free 30-day trial

RowHeaderTemplate

configuration

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
  • tuple - the tuple of the corresponding row header cell

For information about the tuple structure check this link.

rowHeaderTemplate

String|Function
<div id="pivotgrid"></div>

<script id="rowTemplate" type="text/x-kendo-template">
    # if (member.name === "[Date].[Calendar].[Year].&[2005]") { #
        <em>#: member.caption #</em>
    # } else { #
        #: member.caption #
    # } #
</script>

<script>
$("#pivotgrid").kendoPivotGrid({
    rowHeaderTemplate: $("#rowTemplate").html(),
    dataSource: {
        type: "xmla",
        rows: [{ name: "[Date].[Calendar]", expand: true } ],
        measures: ["[Measures].[Internet Sales Amount]"],
        transport: {
            connection: {
                catalog: "Adventure Works DW 2008R2",
                cube: "Adventure Works"
            },
            read: {
                url: "https://demos.telerik.com/service/v2/olap/msmdpump.dll",
                dataType: "text",
                contentType: "text/xml",
                type: "POST"
            }
        },
        schema: {
            type: "xmla"
        }
    }
});
</script>
Not finding the help you need?
Contact Support