React Common Types - grids
AIAssistant
Configures the grids AI Assistant.
AIColumnMode
Specifies how an AI column sends requests.
Used in:
ApplyChangesMode
Specifies when to apply changes made in the field chooser to the PivotGrid.
ApplyFilterMode
Specifies when to apply a filter.
Used in:
BasicFilterExpr
A basic DataGrid/TreeList filter expression.
This object includes the following fields:
- type: The expression type. Set to "basic".
- field: The filtered data field.
- operator: A SearchOperation comparison operator.
- value: The comparison value. Can be one of the following types:
stringnumberbooleannull
ColumnAIOptions
Configures AI options for a column.
ColumnChooser
Configures the column chooser.
ColumnChooserMode
Specifies how a user manages columns using the column chooser.
Used in:
ColumnChooserSearchConfig
Configures the column chooser's search functionality.
ColumnChooserSelectionConfig
Configures column selection functionality within the column chooser.
ColumnFixingIcons
Configures column fixing icons.
ColumnFixingTexts
Contains properties that specify texts for column fixing commands in the context menu of a column header.
ColumnHeaderFilter
Specifies data settings for the header filter.
ColumnHeaderFilterSearchConfig
Configures the header filter's search.
ColumnResizeMode
Specifies how the UI component resizes columns.
Used in:
CombinedFilterExpr
A combined DataGrid/TreeList filter expression.
This object includes the following fields:
- type: The expression type. Set to "combined".
- leftId: The ID of the first filter expression's node (FilterExprNode).
- combiner: The combination operation. Accepted values: "and", "or".
- rightId: The ID of the second filter expression's node (FilterExprNode).
CommandInfo
Information about a predefined DataGrid/TreeList command.
CommandInfo contains the following fields:
- name: The predefined command's name (PredefinedCommandNames).
- args: Command arguments. Refer to PredefinedCommands for information about the arguments of each available command.
CompositeKeyPair
A field/value pair used in composite DataGrid or TreeList keys.
This object includes the following fields:
- field: The key field's name.
- value: The key field's value. Can be a
stringornumber.
DataRenderMode
Specifies the rendering mode for columns and rows.
EnterKeyAction
Specifies whether the Enter key switches the cell or row to the edit state or moves focus in the enterKeyDirection.
EnterKeyDirection
Specifies the direction in which to move focus when a user presses Enter.
FilterExpr
A DataGrid/TreeList filter expression.
FilterExpr is a union of multiple types whose structure depends on the represented filter expression. For additional information, see the following topics:
FilterExprNode
A node in a filter expression tree (FilterExprTree).
This object includes the following fields:
- id: A unique identifier for the node. Nodes reference each other by ID.
- expr: The filter expression (FilterExpr).
FilterExprTree
A complex filter expression in a flat data structure.
FilterExprTree stores a filter expression tree as a flat list rather than a hierarchical structure. This flat structure improves compatibility with AI services for the AI Assistant's filterValue command.
This object includes the following fields:
- rootId: The ID of the root FilterExprNode. This node is evaluated first. rootId must match the id value of an object in the nodes array.
- nodes: An array of FilterExprNode objects. Each node must have a unique id.
FilterOperation
Specifies available filter operations.
FilterPanelTexts
Specifies texts for the filter panel's elements.
FilterRowOperationDescriptions
Specifies descriptions for filter operations on the filter list.
FilterType
Specifies whether a user changes the current filter by including (selecting) or excluding (clearing the selection of) values.
FixedPosition
Specifies a position type for fixed columns.
Used in:
GridsContextMenuTarget
Specifies a target for triggering context menu.
GridsEditMode
Specifies how a user edits data.
GridsEditRefreshMode
Specifies operations that are performed after saving changes.
GroupExpandMode
Specifies the event on which a group will be expanded/collapsed.
Used in:
HeaderFilter
Configures the header filter feature.
HeaderFilterGroupInterval
Specifies how the header filter combines values into groups.
HeaderFilterSearchConfig
Configures the header filter's search functionality.
HeaderFilterTexts
Contains properties that specify text for various elements of the popup menu.
KeyboardNavigation
Configures keyboard navigation.
NegatedFilterExpr
A negated (unary NOT) DataGrid/TreeList filter expression.
This object includes the following fields:
- type: The expression type. Set to "negated".
- expressionId: The ID of a filter expression node (FilterExprNode) to negate.
NewRowPosition
Specifies a position for a new row.
Used in:
PagerPageSize
Specifies the available page sizes in the page size selector.
Used in:
PredefinedCommandNames
Names of predefined commands available in the DevExtreme DataGrid and TreeList.
The following commands are available:
- columnsVisibility
- columnsReorder
- columnsPinning
- columnsResize
- filterValue
- clearFilter
- focusRowByKey
- focusRowByIndex
- paging
- pageSize
- pageIndex
- searching
- selectByKeys
- selectByIndexes
- selectAll
- deselectAll
- clearSelection
- sorting
- clearSorting
See Also
PredefinedCommands
Predefined commands available in the DevExtreme DataGrid and TreeList.
The following code snippet lists available commands with their arguments:
columnsVisibility: {
dataField: string;
visible: boolean;
};
columnsReorder: {
dataField: string;
visibleIndex: number;
};
columnsPinning: {
dataField: string;
fixed: boolean;
fixedPosition?: 'left' | 'right';
};
columnsResize: {
dataField: string;
width: number | string;
};
filterValue: {
expression: FilterExprTree | null;
};
clearFilter: {};
focusRowByKey: {
key: string | number | Array<CompositeKeyPair>;
};
focusRowByIndex: {
index: number;
};
paging: {
enabled: boolean;
};
pageSize: {
pageSize: number;
};
pageIndex: {
pageIndex: number;
};
searching: {
text: string;
};
selectByKeys: {
keys: Array<string | number | Array<CompositeKeyPair>>;
preserve: boolean;
};
selectByIndexes: {
indexes: number[];
};
selectAll: {};
deselectAll: {};
clearSelection: {};
sorting: {
dataField: string;
sortOrder: SortOrder | 'none';
};
clearSorting: {};ResponseStatusTexts
Response messages for each status.
This object can contain both success and failure.
RowDragging
Configures row reordering using drag and drop gestures.
SearchPanel
Configures the search panel.
SelectedFilterOperation
Specifies a filter operation that applies when users use the filter row to filter the column.
SelectionColumnDisplayMode
Specifies when to display the selection column and row selection checkboxes.
StartEditAction
Specifies whether a single or double click should switch a cell to the editing state.
StateStoreType
Specifies the type of storage where the state is saved.