devexpress/agent-skills/devexpress-blazor-treelist
Claude Code and agent skill by devexpress/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Build and configure the DevExpress Blazor TreeList (DxTreeList) — a hierarchical data grid / tree grid for Blazor Server, WebAssembly, and Hybrid apps. Use when displaying tree-structured or parent-child data; binding flat data with KeyFieldName, ParentKeyFieldName, and RootValue; expanding/collapsing nodes; sorting, filtering, search box, and filter panel; implementing CRUD editing for tree nodes; exporting to CSV/XLSX/PDF; loading child nodes on demand; and reordering/re-parenting nodes with…
Install
npx vskill@latest install devexpress/agent-skills/devexpress-blazor-treelistSKILL.md
DevExpress Blazor TreeList
DxTreeList is a hierarchical data grid for Blazor. It displays data as a tree with expandable/collapsible rows based on parent-child key relationships. It shares most of DxGrid's feature set — sorting, filtering, CRUD editing, export, selection — and adds tree-specific capabilities such as multi-level expand/collapse, load-on-demand child nodes, and tree filtering modes.
When to Use This Skill
- Display hierarchical data (organizational charts, product categories, file systems, bill of materials)
- Bind flat data with parent-child ID relationships (
KeyFieldName+ParentKeyFieldName) - Sort, filter, or page tree nodes
- Implement CRUD for hierarchical data (create, edit, delete nodes)
- Export tree data to CSV, XLS/XLSX, or PDF
- Load child nodes on demand from a remote API
- Select single or multiple tree nodes with checkboxes
- Reorder tree nodes within the TreeList or move rows between TreeLists and Grids with drag-and-drop
- Change node hierarchy (re-parent nodes) via drag-and-drop
Prerequisites & Installation
NuGet Package
| Package | Purpose | |
|---|---|---|
DevExpress.Blazor | TreeList + all standard Blazor UI components |
Setup (existing project)
- Register DevExpress resources in
Program.cs:
``csharp builder.Services.AddDevExpressBlazor(); ` > **v26.1 note**: DevExpress.Blazor no longer includes options.BootstrapVersion or DevExpress.Blazor.BootstrapVersion`. Do not generate either API.
- Apply a theme and add client scripts in
App.razorinside<head>:
``razor @using DevExpress.Blazor @DxResourceManager.RegisterTheme(Themes.Fluent) @DxResourceManager.RegisterScripts() ``
- Add the namespace to
_Imports.razor:
``razor @using DevExpress.Blazor ``
Before You Start — Ask the Developer
If the host agent has a structured question-asking tool available, use it to ask these questions one at a time with clear options — for example, Claude Code's AskUserQuestion tool or GitHub Copilot's askQuestions tool. If no such tool is available, ask the questions directly in the chat response before generating code.
Before generating code, ask:
- Render mode: Are you using
InteractiveServer,InteractiveWebAssembly, orInteractiveAuto? (TreeList requires an interactive render mode for tree expansion, filtering, and editing.) - Data structure: Is your data a flat list with parent ID references, or is it already a nested object graph?
- Key fields: What are the primary key field and the parent key field names? What is the root value (the parent ID of root nodes —
null,0, or something else)? - Features needed: Do you need editing? Export? Selection? Load-on-demand children?
- New or existing project?: Are you adding the TreeList to an existing project or starting fresh?
Component Overview
DxTreeList provides:
- Data Binding (
Data,KeyFieldName,ParentKeyFieldName): Binds flat data with parent-child relationships;RootValuedefines root nodes - Column Types (
DxTreeListDataColumn,DxTreeListCommandColumn,DxTreeListSelectionColumn,DxTreeListBandColumn): Same column model as DxGrid - Tree Navigation (
AllowExpandCollapse,ExpandedRowKeys): Expand/collapse tree levels, expand all, collapse all - Data Shaping (
AllowSort,ShowSearchBox,FilterPanelDisplayMode): Sort, filter row, filter panel, search box - Editing (
EditMode,EditModelSaving,DataItemDeleting): EditRow, EditForm, PopupEditForm, EditCell - Selection (
SelectionMode,SelectedDataItems): Single and multiple node selection - Export (
ExportToCsvAsync,ExportToXlsxAsync,ExportToPdfAsync): CSV, XLS/XLSX, PDF - Load on Demand (
ChildrenLoadedevent): Load child nodes asynchronously when a node is expanded - Summary (
TotalSummary,DxTreeListSummaryItem): Total aggregate summaries — Sum, Min, Max, Avg, Count — displayed in the footer - Focused Row (
FocusedRowEnabled): Highlights a single row on click; useGetFocusedRowIndex(),GetFocusedDataItem(), andSetFocusedRowIndex()to work with the current row - Toolbar (
ToolbarTemplate): Embed a toolbar at the top of the TreeList with custom action buttons and data shaping controls - Drag-and-Drop (
AllowDragRows,AllowedDropTarget,ItemsDropped): Row reordering within the same TreeList, moving rows between TreeLists and Grids, and changing node hierarchy (re-parenting); requiresObservableCollection<T>for automatic UI refresh
Core Entry Point (Razor)
Documentation & Navigation Guide
Getting Started
📄 references/getting-started.md
When you need to:
- Set up the TreeList from scratch
- Create your first hierarchical data display
- Understand key field configuration
Data Binding
When you need to:
- Bind to flat data with
KeyFieldName/ParentKeyFieldName - Configure
RootValuefor non-null/non-zero root nodes - Load child nodes on demand with the
ChildrenLoadedevent
Editing & Validation
📄 references/editing-and-validation.md
When you need to:
- Enable CRUD for tree nodes
- Add / edit / delete nodes with
EditModelSavingandDataItemDeleting - Customize the edit form
- Open the edit form from a toolbar or external button for the current focused or selected row
Data Shaping
When you need to:
- Sort by columns, add filter row, search box
- Create total or group summaries
- Show the filter panel or customize filter-builder operators for a specific field
Export
When you need to:
- Export tree data to CSV, XLSX, or PDF
- Control which rows are exported (expanded, all, selected)
Drag-and-Drop
When you need to:
- Reorder rows within the TreeList
- Move rows between TreeLists or Grids
- Change node hierarchy (re-parent nodes) via drag-and-drop
- Handle the
ItemsDroppedevent to update the data source
Examples
💻 examples/quickstart.razor — Hierarchical CRUD with CustomizeEditModel, search box, summaries, and export 💻 examples/edit-form-selected-item.razor — EditFormTemplate plus an external button that edits the current selected/focused row 💻 examples/filter-panel-custom-date-operators.razor — FilterPanelDisplayMode with a custom Filter Builder that removes month operators for DueDate 💻 examples/load-on-demand.razor — Async child loading via ChildrenLoaded for large trees
Quick Start Example
Key Properties & API Surface
DxTreeList
| Property / Method | Type | Description | |
|---|---|---|---|
Data | object | Data source (IEnumerable<T> or IListSource) | |
KeyFieldName | string | Unique key field for tree node identification | |
ParentKeyFieldName | string | Field containing each node's parent key | |
RootValue | object | Parent key value of root nodes (default: null) | |
EditMode | TreeListEditMode | EditRow, EditForm, PopupEditForm, EditCell | |
SelectionMode | TreeListSelectionMode | Single or Multiple | |
SelectedDataItems | IReadOnlyList<object> | Currently selected items (two-way bindable) | |
PageSize | int | Rows per page | |
ShowSearchBox | bool | Show/hide the search box | |
AllowSort | bool | Enable/disable column sorting | |
ExportToCsvAsync() | Task | Export to CSV | |
ExportToXlsxAsync() | Task | Export to XLS/XLSX | |
ExportToPdfAsync() | Task | Export to PDF |
DxTreeListDataColumn
| Property | Type | Description | |
|---|---|---|---|
FieldName | string | Data field name (required) | |
Caption | string | Column header text | |
Width | string | Column width | |
DisplayFormat | string | Value format string | |
SortOrder | TreeListColumnSortOrder | Ascending or Descending | |
SortIndex | int | Multi-column sort position | |
AllowSort | bool | Allow user sorting |
Key Differences from DxGrid
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/dx-blazor/skills/devexpress-blazor-treelist/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 8
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/devexpress/agent-skills/devexpress-blazor-treelist)