DevExtreme v25.2 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.

React Tree List - AI Columns

DevExtreme JavaScript TreeList allows you to add multiple AI columns to the JavaScript TreeList. These columns auto generate meaningful cell values based on component data and a custom prompt, transforming DevExtreme JavaScript TreeList into an AI-powered data analysis tool. In this demo, an AI column is fixed to the right side of the component.

The source code for the React version of this demo will be available soon.

AI services used for this demo have been rate and data limited. As such, you may experience performance-related delays when exploring the capabilities of JavaScript TreeList AI Columns.

When connected to your own AI model/service without rate and data limits, JavaScript TreeList AI Columns will perform seamlessly, without artificial delays. Note that DevExtreme does not offer an AI REST API and does not ship any built-in LLMs/SLMs.

This demo instructs the AI service to identify the department name associated with each employee. You can modify the default prompt or enter a custom prompt in the AI column header menu.

To integrate an AI column into the DevExtreme JavaScript TreeList, you must:

  • Configure the aiIntegration property at the component or column level (aiIntegration or columns[].ai.aiIntegration).
  • Set the column type to "ai".
  • Specify the column name.
  • Configure columns[].ai options, such as generation mode, predefined prompt, and no data text (displayed when the AI service returns no data for a row).

Our DevExtreme JavaScript TreeList component uses all visible row data in AI requests, including fields not bound to a column and hidden column fields. This data gives LLMs broader context, but increases the use of AI resources. To limit data included in AI requests, modify the AIColumnRequestCreatingEvent.data parameter in the onAIColumnRequestCreating event handler.