Edit this page

rows

Get 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.PivotDataSource({
  type: "xmla",
  transport: {
    connection: {
        catalog: "Adventure Works DW 2008R2",
        cube: "Adventure Works"
    },
    read: "https://demos.telerik.com/olap/msmdpump.dll"
  },
  schema: {
    type: "xmla"
  }
});

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

Example - get the rows name

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

var rows = dataSource.rows();
console.log(rows);// [{ name: ["[Date].[Calendar]"] }]
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy