Getting Started with the Kendo UI for Vue PivotGrid

Updated on Nov 26, 2026

This guide provides essential information about using the Kendo UI for Vue PivotGrid. You will learn how to install the package, add a PivotGrid component to your project, style the component, and activate your license.

ninja-iconThe PivotGrid is part of Kendo UI for Vue, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.Start Free Trial

After completing this guide, you will be able to reproduce the following example.

Example
View Source
Loading ...

Setting Up Your Vue Project

Before you install the Kendo UI for Vue PivotGrid, make sure that you have a running Vue project. The easiest way to set up a Vue project is to use the approach described in the Set up the Vue project section of the First Steps with JavaScript article.

Install the Component

To install the PivotGrid package, run the following command in the root folder of your Vue project:

sh
npm i @progress/kendo-vue-pivotgrid

Importing the Component

After installing the package, import the PivotGrid component in the Vue App.

In the src/App.vue file of your Vue project, import the PivotGrid, PivotGridContainer and usePivotOLAPService from the PivotGrid package. The usePivotOLAPService composable binds the PivotGrid to an OLAP cube.

js
// ES2015 module syntax
import { PivotGrid, PivotGridContainer, usePivotOLAPService } from '@progress/kendo-vue-pivotgrid';
js
// CommonJS format
const { PivotGrid, PivotGridContainer, usePivotOLAPService } = require('@progress/kendo-vue-pivotgrid');

Using the Component

  1. Define the defaultColumnAxes, defaultRowAxes and the defaultMeasureAxes. Each item is a PivotGridAxis object that describes a single column, row, or measure axis.

    js
    const defaultColumnAxes = [
        { name: ['[Date].[Calendar]'], expand: true },
        { name: ['[Product].[Category]'] }
    ];
    const defaultRowAxes = [{ name: ['[Geography].[City]'] }];
    const defaultMeasureAxes = [{ name: ['[Measures].[Reseller Freight Cost]'] }];
  2. Define the catalog, cube, and url.

    js
    const catalog = 'Adventure Works DW 2008R2';
    const cube = 'Adventure Works';
    const url = 'https://demos.telerik.com/service/v2/olap/msmdpump.dll';
  3. Pass the configuration to the usePivotOLAPService composable in the <script setup> block of the src/App.vue file.

    js
    const { pivotProps } = usePivotOLAPService({
        catalog,
        cube,
        url,
        defaultRowAxes,
        defaultColumnAxes,
        defaultMeasureAxes
    });
  4. Add the component's markup to the template section of the src/App.vue file in your project and set the desired properties.

    html
    <template>
        <PivotGridContainer>
            <PivotGrid v-bind="pivotProps" :style="{ height: '700px' }" :column="WideColumn" />
        </PivotGridContainer>
    </template>
  5. To style the PivotGrid, install and import the Meridian theme, which is one of the five beautiful themes for Kendo UI for Vue.

    1. Install the Meridian theme package.

      sh
      npm i @progress/kendo-theme-meridian
    2. Import the Theme package in src/App.vue.

      js
      import '@progress/kendo-theme-meridian/dist/all.css';
  6. Build and run the application by typing the following command in the root folder of your project:

    sh
    npm run dev
  7. Navigate to the URL displayed in the terminal to see the Kendo UI for Vue PivotGrid component on the page.

Activating Your License Key

Using any of the UI components in the Kendo UI for Vue library requires either a commercial license key or an active trial license key.

Follow the instructions on the My License page to activate your trial or commercial license. You can skip this step if your application already contains a Kendo UI for Vue license file.

Dependencies

The PivotGrid package requires you to install the following peer dependencies in your application:

Package NameDescription
vue 3.0.0+Contains the functionality necessary to define Vue components.
@progress/kendo-licensingContains the internal infrastructure related to licensing.
@progress/kendo-data-queryContains the data query helpers.
@progress/kendo-pivotgrid-commonContains the framework-agnostic PivotGrid data processing and OLAP communication logic.
@progress/kendo-svg-iconsContains the SVG icons for the components.
@progress/kendo-vue-commonContains the common utilities of the Kendo UI for Vue suite.
@progress/kendo-vue-intlContains the Kendo UI for Vue Internationalization package that applies the desired cultures by providing services and pipes for the parsing and formatting of dates and numbers.
@progress/kendo-vue-animationContains the Kendo UI for Vue Animation components.
@progress/kendo-vue-buttonsContains the Kendo UI for Vue Buttons components.
@progress/kendo-vue-dropdownsContains the Kendo UI for Vue DropDowns components.
@progress/kendo-vue-formContains the Kendo UI for Vue Form components.
@progress/kendo-vue-indicatorsContains the Kendo UI for Vue Indicators components.
@progress/kendo-vue-inputsContains the Kendo UI for Vue Inputs components.
@progress/kendo-vue-labelsContains the Kendo UI for Vue Labels components.
@progress/kendo-vue-popupContains the Kendo UI for Vue Popup component.
@progress/kendo-vue-treeviewContains the Kendo UI for Vue TreeView component.

Learning Resources