Getting Started with KendoReact ListBox

The KendoReact ListBox enables you to display lists of items and to move the items between multiple lists.

The ListView component displays a list of data items that are contained in a box and allows selecting, reordering, deleting, as well as the dragging and dropping of items. You can also connect a ListBox with another ListBox or ListBoxes. You can customize the component with the use of item rendering, toolbar positioning, and localization of its toolbar tools buttons messages.


Basic Usage

The following example demonstrates the ListBox 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-listbox @progress/kendo-react-intl @progress/kendo-licensing
  2. Once installed, import the package module.

    // ES2015 module syntax
    import { ListBox, ListBoxToolbar, processListBoxData, processListBoxDragAndDrop } from '@progress/kendo-react-listbox';
    // CommonJS format
    const { ListBox, ListBoxToolbar, processListBoxData, processListBoxDragAndDrop } = require('@progress/kendo-react-listbox');
  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 getting started article.

Dependencies

The ListBox package requires the following peer dependencies that have to be installed by your application:

  • react 16.8.2*
  • react-dom
  • @progress/kendo-react-intl
  • @progress/kendo-licensing