New to Kendo UI for jQuery? Download free 30-day trial

Align the Text of the PivotGrid to the Right


Product Progress Kendo UI PivotGrid for jQuery
Operating System Windows 10 64bit
Visual Studio version Visual Studio 2017
Preferred Language JavaScript


How can I aling the text of the PivotGrid cells to the right?


The following example demonstrates how to right-align the text of data cells in a Kendo UI PivotGrid widget.

      .k-pivot-table .k-grid-content td {
          text-align: right;

<div id="example">
    <div id="pivotgrid"></div>

        $(document).ready(function () {
            var pivotgrid = $("#pivotgrid").kendoPivotGrid({
                filterable: true,
                columnWidth: 200,
                height: 580,
                dataSource: {
                    type: "xmla",
                    columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Product].[Category]" } ],
                    rows: [{ name: "[Geography].[City]" }],
                    measures: ["[Measures].[Internet Sales Amount]"],
                    transport: {
                        connection: {
                            catalog: "Adventure Works DW 2008R2",
                            cube: "Adventure Works"
                        read: ""
                    schema: {
                        type: "xmla"
                    error: function (e) {
                        alert("error: " + kendo.stringify(e.errors[0]));

                filterable: true,
                dataSource: pivotgrid.dataSource

See Also

In this article