Optional
behaviorsOptional
calculatedOptional
contextOptional
currentOptional
expansionOptional
fillerareAllRowsSelected returns true if all rows are selected, including the children of the rows recursively. Only applicable if the selectionMode is set to GridSelectionMode.SingleRow or GridSelectionMode.MultipleRows (default).
areRowsSelected returns true if the specified rows are selected, including the children of the rows recursively. Only applicable if the selectionMode is set to GridSelectionMode.SingleRow or GridSelectionMode.MultipleRows (default).
Optional
rows: unknown[]Optional
levelDepth: numberautoFitColumns auto fits the specified columns. If no columns are specified, all columns are auto fitted.
Optional
columns: ColumnOptions[]The columns to auto fit.
Optional
includeHeader: booleanWhether to include the header text in the auto fit.
clearAllFilterValues clears all filter values.
clearAllSorts clears all sorts.
clearFilterValue clears the filter value for the specified column.
The unique identifier of the column
clearSelection clears the selection, regardless of the selection mode.
clearSort clears the sort for the specified column.
The unique identifier of the column
CollapseRow collapses the specified row. Only applicable for hierarchical data.
The row identifier of the row to expand or collapse.
copyAll copies all cells to the clipboard.
copyCell copies the specified cell to the clipboard.
The cell to copy
copyColumn copies the specified column to the clipboard.
The cell to copy
copyRow copies the specified row to the clipboard. Iterates through the cols in the row, calls itemToLabel on each of them and return the resulting string in tab delimited format
The cell to copy
copySelectedCells copies all selected cells to the clipboard.
copySelectedRows copies all selected rows to the clipboard.
deselectCell deselects the specified cell. Only applicable if the selectionMode is set to GridSelectionMode.SingleCell or GridSelectionMode.MultipleCells.
Optional
e: MouseEventThe mouse event that triggered the deselection.
deselectRow deselects the specified row. Only applicable if the selectionMode is set to GridSelectionMode.SingleRow or GridSelectionMode.MultipleRows (default).
The cell from which we can use the rowIdentifier to deselect the row.
dispatchFilterPageSortChanged dispatches the onFilterPageSortChanged event. This event is used to notify the user that the filter, page, or sort has changed. The event is dispatched when the user changes the filter, page, or sort. The event is also dispatched when the user clears the filter, page, or sort. The event is dispatched when the user changes the global filter.
End the current edit session. The editor will be removed and the cell will be repainted.
ExpandRow expands the specified row. Only applicable for hierarchical data.
The row identifier of the row to expand or collapse.
focusCell focuses the specified cell. The cell is focused by adding a class to thpe cell. You can customize euxdt-dg-focus-cell css class to change the appearance of the focused cell. This will only work if enableFocusCellHighlight is set to true. The default value is false.
The cell to focus
Optional
e: MouseEventThe mouse event that triggered the focus
getAllFilterValues returns a map of all filter values. The key is the column identifier and the value is the filter value. The filter value is a string for TextInputFilter and SelectFilter, an object with start and end properties for DateRangeFilter, NumberRangeFilter an array of strings for MultiSelectFilter, and a boolean for TriStateCheckboxFilter.
A map of all filter values
getDistinctFilterValues returns the distinct values for the specified column. If you have specified a filterComboBoxDataProvider, it returns the values returned by the filterComboBoxDataProvider. Otherwise, it returns the distinct values for the column.
The column
getFilterDisplayValue returns the display value for the specified filter value. It uses the columns built in formatting to format the value.
The display value for the filter value
The filter value. The filter value is a string for TextInputFilter and SelectFilter, an object with start and end properties for DateRangeFilter, NumberRangeFilter an array of strings for MultiSelectFilter, and a boolean for TriStateCheckboxFilter.
Optional
col: ColumnOptionsThe column
getFilterValue returns the filter value for the specified column. If the column is not filtered, it returns undefined. If the column is filtered, it returns the filter value. The filter value is a string for TextInputFilter and SelectFilter, an object with start and end properties for DateRangeFilter, NumberRangeFilter an array of strings for MultiSelectFilter, and a boolean for TriStateCheckboxFilter.
The unique identifier of the column
getFlatColumns returns a flat array of all columns. The columns are returned in the order they are displayed in the grid. The children of a column are returned after the column.
A flat array of all columns
getFlatColumnsAtAllLevels returns a flat array of all columns. The columns are returned in the order they are displayed in the grid. The children of a column are returned after the column. The columns are returned at all levels, including inner level columns for nested grids.
A flat array of all columns
getFocusCell returns the cell that has focus. Only applicable if the enableFocusCell is set to true.
Optional
level: GridLevelOptionsgetRowChildren returns the children of the specified row. Only applicable for hierarchical data.
Optional
level: numbergetSelectedCells returns the selected cells. Only applicable if the selectionMode is set to GridSelectionMode.SingleCell or GridSelectionMode.MultipleCells.
getSelectedRows returns the selected rows. Only applicable if the selectionMode is set to GridSelectionMode.SingleRow or GridSelectionMode.MultipleRows (default).
getSort returns the sort for the specified column. The returned value is a Sort Info object. The Sort Info contains the column identifier, the sort direction, additional information as specified in the column's definition.
getSorts returns the sorts for the specified level. The returned value is a map of column identifiers and sort information. The Sort Info contains the column identifier, the sort direction, additional information as specified in the column's definition.
Optional
triggerEvent: MouseEventOptional
triggerEvent: MouseEventOptional
triggerEvent: MouseEventOptional
triggerEvent: MouseEventOptional
triggerEvent: MouseEventOptional
triggerEvent: MouseEventOptional
triggerEvent: MouseEventOptional
triggerEvent: MouseEventOptional
triggerEvent: MouseEventhighlightCell highlights the specified cell. The cell is highlighted by adding a class to thpe cell. You can customize euxdt-dg-active-cell css class to change the appearance of the highlighted cell. This will only work if enableActiveCellHighlight is set to true. The default value is false.
The cell to highlight
Optional
e: MouseEventThe mouse event that triggered the highlight
Optional
col: ColumnOptionsSupport for key board interaction.
If the body container is in edit mode, keyboard interaction that is handled is limited to the TAB and Enter keys, which will end the
edit session and move on to the next cell or row on basis of which key has been selected.
If we are in any of the filter control, the TAB and SHIFT TAB keys will move between the filter controls. Once you focus on a filter control,
all keyboard interaction except TAB, SHIFT TAB and Arrow Keys is handled by the Filter Control in question. These are all Flex SDK controls, and you should
refer to the the documentation of the SDK control for more information about its keyboard interaction. Arrow keys will move focus out of the filter control
and highlight the next cell (for down arrow) or the header (for up arrow) on basis of what the displayOrder property of the grid specifies.
We have a concept of an active cell, which is the cell that is currently active either via a click, or via a arrow key navigation gesture.
You can style this color of the active cell via the euxdt-dg-focus-cell style. You can completely disable the active cell tracking by setting enableFocusCellHighlight
to false.
When the grid is not in edit mode, and focus is not on the filter but on a specific grid cell, the following keyboard interactions are available:
keyDownHandler
propsUpdated is called when the props of the grid are updated. This is useful if the grid is not automatically rebuilding outside of these scenarios.
Rebuild rebuilds the grid. The grid automatically rebuilds if the data provider or the size of the grid changes. This method is useful if the grid is not automatically rebuilding outside of these scenarios.
Repaint repaints the grid. The grid automatically repaints on mouse events and keyboard events. This method is useful if the grid is not automatically repainting outside of these scenarios.
selectAll selects all rows or cells, depending on the selection mode.
selectCell selects the specified cell. Only applicable if the selectionMode is set to GridSelectionMode.SingleCell or GridSelectionMode.MultipleCells.
The cell to select.
Optional
e: MouseEventThe mouse event that triggered the selection.
selectRow selects the specified row. Only applicable if the selectionMode is set to GridSelectionMode.SingleRow or GridSelectionMode.MultipleRows (default).
The cell from which we can use the rowIdentifier to select the row.
setFilterValue sets the filter value for the specified column.
The unique identifier of the column
The filter value. The filter value is a string for TextInputFilter and SelectFilter, an object with start and end properties for DateRangeFilter, NumberRangeFilter an array of strings for MultiSelectFilter, and a boolean for TriStateCheckboxFilter.
setGlobalFilter sets the global filter value. The global filter value is used to filter all columns.
The global filter value
setGlobalFilterTree sets the global filter tree. The global filter tree is used to filter all columns. The global filter tree is a tree of Filter objects. The tree is used to filter the data. The tree is built by the filter builder. Please see https://reactdatagrid.com/examples/?example=Filter_Builder for more information.
The global filter tree
setSelectedRows selects the specified rows. Only applicable if the selectionMode is set to GridSelectionMode.SingleRow or GridSelectionMode.MultipleRows (default).
The row identifiers to select.
setSort sets the sort for the specified column. If the column is not sorted, it is sorted ascending. If the column is sorted ascending, it is sorted descending.
setSorts sets the sorts for the specified columns. If the column is not sorted, it is sorted ascending. If the column is sorted ascending, it is sorted descending.
An array of sort information. Each element in the array contains the column identifier and the sort direction.
Shift a column to the left or right of another column. Triggered by dragging a column header. If the column is moved to different section, for example, if a left locked column is moved to the unlocked section, the column will be unlocked in the process.
The cell that the column was moved next to, or undefined if the move was not valid
Optional
columnIdentifier: stringUnique column identifier of the column to move
Optional
nextToCell: CellSelelectionCell to move the column next to
Optional
dryRun: booleanIf true, the column will not be moved, but the return value will indicate if the move is valid
Optional
rowIdentifier: stringOptional
nextToRowIdentifier: stringOptional
dryRun: booleanOptional
above: booleanOptional
dragValid: ((from: string, to: string) => boolean)Optional
show: booleanOptional
cell: CellSelelectionOptional
mouseEvent: MouseEventToggleExpandCollapseRow toggles the expansion of the specified row. Only applicable for hierarchical data.
The row identifier of the row to expand or collapse.
The mouse event that triggered the toggle.
toggleSelection toggles the selection of the specified cell. Only applicable if the selectionMode is set to GridSelectionMode.SingleCell or GridSelectionMode.MultipleCells.
The cell to toggle.
toggleSort toggles the sort for the specified column. If the column is not sorted, it is sorted ascending. If the column is sorted ascending, it is sorted descending.
The unique identifier of the column
Optional
clearOthers: booleanIf true, all other sorts are cleared
Optional
e: MouseEventThe mouse event that triggered the sort
Returns the grid's context
Optional
keyboardOptional
levelOptional
paginationOptional
quickOptional
scrollGenerated using TypeDoc
The editor being used as the current component to edit. This is an instance of the VirtualTreeNode interface. This will be populated only after an edit session has started.