Getting started with the KendoReact Sortable

The Sortable provides a sortable drag-and-drop functionality to elements within a list.

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

The Sortable Package is part of KendoReact, a professionally built commercial UI library. To try out this Sortable 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 Sortable 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-sortable
  2. Once installed, import the package module.

    // ES2015 module syntax
    import { Sortable } from '@progress/kendo-react-sortable';
    // CommonJS format
    const { Sortable } = require('@progress/kendo-react-sortable');
  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 Sortable package requires the following peer dependencies that have to be installed by your application:

  • react
  • react-dom

Events

The following example demonstrates basic Sortable events.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?