Conigma Connect
Data Grid
Discriminator: dataGrid
Fluent UI Blazor Component: FluentDataGrid
Description
The DataGrid component renders a data table with support for sortable and filterable columns, row selection, pagination, and hover effects. Data is provided as an array of JSON objects, and columns define how to extract and display values from each row.
Properties
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| ✅ Yes |
| Type discriminator |
|
| No |
| Inline CSS style |
|
| No |
| Component identifier for data binding (required for selection data) |
|
| No |
| Column definitions (see below) |
|
| No |
| Array of JSON objects representing the rows |
|
| No | (see below) | Selection configuration |
|
| No |
| JSON property key used to identify selected items by value |
|
| No |
| Whether to highlight rows on hover |
|
| No |
| Whether columns can be resized by dragging |
|
| No |
| Whether columns automatically fit their content |
|
| No |
| Row height size: |
|
| No |
| Pagination configuration (see below). When |
DataGridColumn
Each column defines how to display a property from each row item.
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| ✅ Yes | — | JSON property key to extract from each row item (supports JSON Path) |
|
| ✅ Yes | — | Column header display text |
|
| No |
| Column content alignment: |
|
| No |
| Initial sort direction: |
|
| No |
| Whether this column is the default sort column |
|
| No |
| Whether the column can be sorted |
|
| No |
| Whether the column has a text filter input |
|
| No |
| Fixed CSS width (e.g. |
|
| No |
| Minimum CSS width |
DataGridSelection
Controls row selection behavior.
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| No |
| Selection mode: |
|
| No |
| Optional JSON Path expression evaluated against each row to determine if it is selectable. Must evaluate to a boolean. When |
|
| No |
| Minimum number of items that must be selected |
|
| No |
| Maximum number of items that can be selected. |
DataGridPagination
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| No |
| Number of items displayed per page |
DataGridRowSize Values
Value | Description |
|---|---|
| Compact row height |
| Small row height (default) |
| Medium row height |
| Large row height |
Data Binding
When the DataGrid has an id and is referenced by a button's data binding, the grid provides a DataGridOutputData object containing:
Property | Type | Description |
|---|---|---|
|
| All items in the grid |
|
| Currently selected row objects |
|
| Zero-based indices of selected rows |
|
| Values of the |
Validation
When selection is configured and the grid is validated:
Single mode: Exactly one item must be selected (unless
minSelectableis0).Multiple mode: The number of selected items must be between
minSelectableandmaxSelectable.
JSON Example
Basic Data Grid
Rendering...
Data Grid with Selection and Filtering
Rendering...