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

Catalog

methods

Gets or sets the current catalog name.

Parameters:nameString

The name of the catalog.

Returns:String

—The current catalog name.

<script>
var dataSource = new kendo.data.PivotDataSource({
  type: "xmla",
  columns: ["[Date].[Calendar]"],
  transport: {
    read: "https://demos.telerik.com/service/v2/olap/msmdpump.dll"
  },
  schema: {
    type: "xmla"
  }
});

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

var catalogName = dataSource.catalog();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(catalogName);// prints "Adventure Works DW 2008R2"
</script>
Not finding the help you need?
Contact Support