All Components

You are on the site of the Kendo UI Wrappers for React suite which contains wrappers for the Kendo UI for jQuery widgets. To explore the brand-new set of Kendo UI for React components which are built from the ground up, go to the Kendo UI for React suite.

DropDowns Overview

The DropDowns allow you to choose from a predefined list of options.

Basic Usage

The following example demonstrates the AutoComplete, ComboBox, DropDownList, and MultiSelect in action.

class DropDownListContainer extends React.Component {
    constructor(props) {
            super(props);
            this.dataSource = new kendo.data.DataSource({
                data: props.data
            })
        this.value = props.value
    }

    render() {
        return (
            <div className="example-wrapper">
                <div className="col-xs-12 col-sm-6 example-col">
                   <p>DropDownList</p>
                   <DropDownList dataSource={this.dataSource}/>
                </div>
                <div className="col-xs-12 col-sm-6 example-col">
                   <p>ComboBox</p>
                   <ComboBox dataSource={this.dataSource}/>
                </div>
                <div className="col-xs-12 col-sm-6 example-col">
                   <p>AutoComplete</p>
                   <AutoComplete dataSource={this.dataSource}/>
                </div>
                <div className="col-xs-12 col-sm-6 example-col">
                    <p>MultiSelect</p>
                    <MultiSelect dataSource={this.dataSource} value={this.value}/>
                </div>                  
            </div>
        );
    }
}
ReactDOM.render(
    <DropDownListContainer data={["Baseball", "Basketball", "Cricket", "Field Hockey", "Football", "Table Tennis", "Tennis", "Volleyball"]} value={['Basketball', 'Cricket']}/>,
    document.querySelector('my-app')
);

Installation

All components that you reference during the installation will be present in the final bundle of your application. To avoid ending up with components you do not actually need, import from the package only the desired component.

  1. Download and install the package.

    npm install --save @progress/kendo-dropdowns-react-wrapper
  2. Once installed, import the desired component from the package.

    import { AutoComplete } from '@progress/kendo-dropdowns-react-wrapper';

    The package also exports the following individual components:

    • AutoComplete
    • ComboBox
    • DropDownList
    • MultiSelect
  3. You are required to install one of the Kendo UI themes to style your components.

Dependencies

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

  • @progress/kendo-ui
In this article