Getting Started with KendoReact TreeView

The KendoReact TreeView displays hierarchical data in a traditional tree structure, supports user interaction through mouse or touch events, and performs reordering operations by using the drag-and-drop functionality.

The KendoReact TreeView component is part of the KendoReact library of React UI components. It is distributed through NPM under the kendo-react-treeview package.

The TreeView Package is part of KendoReact, a professional UI components library designed and built from the ground up for React to make developers more productive. To try it out, sign up for a free 30-day trial.

Basic Usage

The following example demonstrates the TreeView in action.

Example
View Source
Edit In Stackblitz  
Change Theme:

Functionality and Features

Installation

  1. Download and install the package. Use Node.js v5.0.0 or later.

       npm install --save @progress/kendo-react-treeview @progress/kendo-react-animation @progress/kendo-licensing
  2. Once installed, import the package module.

    // ES2015 module syntax
    import { TreeView } from '@progress/kendo-react-treeview';
    // CommonJS format
    const { TreeView } = require('@progress/kendo-react-treeview');
  3. You are required to install one of the KendoReact themes to style your components. For more information on how to add the styles, refer to the article on getting started.

  4. Follow the instructions on the KendoReact My License page to activate your license. You can skip this step if your application already contains a KendoReact license file.

Dependencies

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

  • react
  • react-dom
  • @progress/kendo-licensing
  • @progress/kendo-react-animation