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 professionally built commercial UI library. To try out this TreeView you need to sign up for a 30-day trial, which gives you access to the full KendoReact library.


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
  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.

Dependencies

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

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

In this article

Not finding the help you need?