• What is KendoReact
  • Getting Started
  • Unstyled Mode
  • Server Components
  • Components
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

TreeView

A subclass of React.Component.

Represents the KendoReact TreeView component.

const data = [{
    text: 'Furniture', expanded: true, items: [
        { text: 'Tables & Chairs' }, { text: 'Sofas' }, { text: 'Occasional Furniture' }]
}, {
    text: 'Decor', expanded: true, items: [
        { text: 'Bed Linen' }, { text: 'Curtains & Blinds' }, { text: 'Carpets' }]
}];
class App extends React.Component {
    render() {
        return <TreeView data={data} />;
    }
}
ReactDOM.render(<App />, document.querySelector('my-app'));
NameTypeDefaultDescription

guid

string

Returns the guid which is associated with the TreeView.

props

Readonly<TreeViewProps>

The props of the TreeView component.

In this article

Not finding the help you need?