devexpress/agent-skills/devexpress-blazor-grid
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 Grid (DxGrid) — a full-featured data grid for Blazor Server, WebAssembly, and Hybrid apps. Use when binding tabular data (IEnumerable/IQueryable/EF Core/server-mode/custom sources), enabling sorting/filtering/grouping/search, implementing CRUD editing (row/edit form/popup/cell), handling selection and focused rows, exporting to CSV/XLSX/PDF, customizing templates and summaries, and supporting large datasets with virtualization. Also use for DxGrid, DevE…
Install
npx vskill@latest install devexpress/agent-skills/devexpress-blazor-gridSKILL.md
DevExpress Blazor Grid
DxGrid is a high-performance data grid for Blazor applications. It supports data binding to in-memory collections, Entity Framework Core, server-mode sources, and custom data sources. Key feature areas include sorting, grouping, filtering, multi-mode editing (edit row, edit form, popup, cell), row selection, data export (CSV/XLS/PDF), column templates, summaries, and drag-and-drop row reordering.
When to Use This Skill
- Display tabular data from any .NET data source in a Blazor page
- Implement CRUD operations (create, update, delete rows) with built-in edit forms
- Sort, group, filter, and search grid data in the UI or programmatically
- Export data to CSV, XLSX, or PDF with custom formatting
- Enable row selection (single or multiple) and act on selected data
- Add column chooser, resize, reorder, and freeze (pin) columns
- Use virtual scrolling for large in-memory datasets
- Bind to large remote datasets via EF Core server-mode sources
- Customize cell appearance using templates and
CustomizeElement - Add a toolbar, context menu, or summary rows to the grid
Prerequisites & Installation
NuGet Package
| Package | Purpose | |
|---|---|---|
DevExpress.Blazor | Grid + 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? (Grid requires an interactive mode for sorting, filtering, editing, and paging.) - Data source: Are you binding to a simple in-memory collection (
List<T>,IEnumerable<T>), EF Core (DbSet<T>orEntityInstantFeedbackSource),IQueryable<T>, or a custom data source (GridCustomDataSource)? - Features needed: Do you need editing (which mode: EditRow, EditForm, PopupEditForm, EditCell)? Export? Selection? Virtual scrolling?
- Key field: Does your data model have a primary key property? (Required for editing, selection, and server-mode sources.)
- New or existing project?: Are you adding the grid to an existing project or starting fresh?
Ask before generating. Render mode and data source type significantly affect the code.
Component Overview
DxGrid provides:
- Data Binding (
Data,KeyFieldName): Binds toIEnumerable<T>,IListSource,IQueryable<T>,GridDevExtremeDataSource<T>, orGridCustomDataSource - Column Types (
DxGridDataColumn,DxGridCommandColumn,DxGridSelectionColumn,DxGridBandColumn): Bound, unbound, command, selection, and band columns - Data Shaping (
AllowSort,ShowGroupPanel,ShowSearchBox,FilterPanelDisplayMode): Sort, group, filter row, filter panel, search box - Editing (
EditMode,EditModelSaving,DataItemDeleting): EditRow, EditForm, PopupEditForm, EditCell modes - Selection (
SelectionMode,SelectedDataItems): Single and multiple row selection - Export (
ExportToCsvAsync,ExportToXlsxAsync,ExportToPdfAsync): CSV, XLS/XLSX, and PDF export - Paging & Scrolling (
PageSize,VirtualScrollingEnabled,VirtualScrollingMode): Pager and virtual scrolling - Summary (
TotalSummary,GroupSummary,DxGridSummaryItem): Total and group aggregate summaries — Sum, Min, Max, Avg, Count — displayed in the grid footer - Focused Row (
FocusedRowEnabled): Highlights a single row on click; exposesFocusedRowIndexandFocusedDataItemfor programmatic access - Toolbar (
ToolbarTemplate): Embed a toolbar at the top of the Grid with custom action buttons and data shaping controls - Master-Detail (
DetailRowTemplate,ExpandDetailRow,CollapseDetailRow): Expandable detail rows with nested grids or arbitrary content; the detail template receives the master row's data item viacontext.DataItem - Drag-and-Drop (
AllowDragRows,AllowedDropTarget,ItemsDropped): Row reordering within the same grid or moving rows between grids; 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 Grid from scratch in a new or existing Blazor project
- Create your first grid with columns and data binding
- Enable interactive render mode for the grid page
Data Binding
When you need to:
- Bind to an in-memory list,
IQueryable, EF Core DbSet - Use
EntityInstantFeedbackSourceorEntityServerModeSourcefor large datasets - Configure a
GridCustomDataSourcefor Web API / OData backends - Understand which features are available per data-binding mode
Columns & Templates
📄 references/columns-and-templates.md
When you need to:
- Add, configure, or hide columns (
FieldName,Caption,Width,Visible) - Customize cell display or edit templates (
CellDisplayTemplate,CellEditTemplate) - Add a command column (New / Edit / Delete buttons)
- Create unbound columns with
UnboundExpression - Use band (header) columns to group related columns
Editing & Validation
📄 references/editing-and-validation.md
When you need to:
- Enable row editing in EditRow, EditForm, PopupEditForm, or EditCell mode
- Handle
EditModelSavingandDataItemDeletingevents - Customize the edit form using
EditFormTemplate - Validate user input with data annotations
Data Shaping
When you need to:
- Sort by one or multiple columns programmatically or in the UI
- Group rows and configure group summaries
- Add filter row, filter panel, search box, or column filter menu
- Show the filter panel or customize filter-builder operators for a specific field
- Create total and group summary items
Export
When you need to:
- Export grid data to CSV, XLS/XLSX, or PDF
- Customize exported cell styles, fonts, or document headers/footers
- Export only selected rows
Selection
When you need to:
- Enable single or multiple row selection
- Get/set
SelectedDataItemorSelectedDataItems - Add a
DxGridSelectionColumnwith checkboxes - Select rows programmatically using
SelectRow,SelectDataItem
Drag-and-Drop
When you need to:
- Enable row reordering within one grid (
AllowDragRows+AllowedDropTarget.Internal) - Move rows between two grids (
AllowedDropTarget.Externalon source,Allon target) - Handle
ItemsDroppedto updateObservableCollection<T>data sources - Use
GetTargetDataSourceIndexAsync()for simplified insertion-index calculation - Customize the drag hint with
DragHintTextTemplate
Examples
💻 examples/quickstart.razor — In-memory CRUD with EditRow, grouping, search box, summaries, and export 💻 examples/ef-core-crud.razor — Full EF Core CRUD with IDbContextFactory, async save/delete, and data reload 💻 examples/filter-panel-custom-date-operators.razor — FilterPanelDisplayMode with a custom Filter Builder that removes month operators for DueDate 💻 examples/custom-templates.razor — CellDisplayTemplate (badge rendering), EditFormTemplate with DxFormLayout, HeaderCaptionTemplate 💻 examples/drag-and-drop.razor — Row reordering within one grid and moving rows between two grids using ObservableCollection<T>
Quick Start Example
What This Does
Displays a weather forecast list with inline row editing, a delete button, sorting by date, a group panel, a search box, and a total count summary. Clicking the pencil icon opens editors inline; clicking delete prompts for removal.
Key Properties & API Surface
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-grid/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-grid)