rows

Gets or sets the rows configuration.

Parameters

val Array

The rows configuration. Accepts the same values as the row option.

Returns

Array—The current rows configuration.

Example - set the rows

<script>
var dataSource = new kendo.data.PivotDataSourceV2({
  type: "xmla",
  transport: {
    connection: {
        catalog: "Adventure Works DW 2008R2",
        cube: "Adventure Works"
    },
    read: "https://demos.telerik.com/olap/msmdpump.dll"
  }
});

dataSource.rows(["[Date].[Calendar]"]);
</script>

Example - get the rows name

<script>
var dataSource = new kendo.data.PivotDataSourceV2({
  type: "xmla",
  rows: ["[Date].[Calendar]"],
  transport: {
    connection: {
        catalog: "Adventure Works DW 2008R2"
    },
    read: "https://demos.telerik.com/olap/msmdpump.dll"
  }
});

var rows = dataSource.rows();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(rows);// [{ name: ["[Date].[Calendar]"] }]
</script>
In this article