areAllRowsSelected 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).
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
deselectCell deselects the specified cell. Only applicable if the selectionMode is set to
GridSelectionMode.SingleCell or GridSelectionMode.MultipleCells.
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.
Returns void
dispatchFilterPageSortChanged: (() => void)
(): void
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.
Returns void
endEdit: (() => void)
(): void
End the current edit session. The editor will be removed and the cell will be repainted.
Returns void
expandAll: (() => void)
(): void
Returns void
expandOneLevel: (() => void)
(): void
Returns void
expandRow: ((rowIdentifier: string) => void)
(rowIdentifier: string): void
ExpandRow expands the specified row. Only applicable for hierarchical data.
Parameters
rowIdentifier: string
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.
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.
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.
getFilterDisplayValue returns the display value for the specified filter value. It uses the columns built in formatting
to format the value.
Returns
The display value for the filter value
Parameters
value: unknown
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.
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.
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.
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.
getSelectedCells 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.
highlightCell 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.
Support 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:
Keyboard.UP : Navigates to the cell and row above the currently focused cell.
Keyboard.DOWN : Navigates to the cell and row below the currently focused cell
Keyboard.LEFT : Navigates to the cell to the left the currently focused cell
Keyboard.RIGHT : Navigates to the cell to the right the currently focused cell
Keyboard.TAB : Relinquishes focus from the grid and moves on to the next focussable control in the display tree
Keyboard.PAGE_DOWN: Moves the scroll bar down by the height of the grid and highlights the newly visible first row
Keyboard.PAGE_UP: Moves the scroll bar up by the height of the grid and highlights the newly visible first row
Keyboard.HOME: Moves the scroll to the top (i.e.) the first record of the grid and highlights the newly visible first row
Keyboard.END: Moves the scroll to the end (i.e.) the last record of the grid and highlights the newly visible first row
Keyboard.SPACE: Performs the equivalent of a click on the active cell
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.
Returns void
rebuild: (() => void)
(): void
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.
selectRow selects the specified row. Only applicable if the selectionMode is set to
GridSelectionMode.SingleRow or GridSelectionMode.MultipleRows (default).
setFilterValue sets the filter value for the specified column.
Parameters
columnIdentifier: string
The unique identifier of the column
value: unknown
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.
Returns void
setGlobalFilter: ((value: string) => void)
(value: string): void
setGlobalFilter sets the global filter value. The global filter value is used to filter all columns.
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.
setSelectedRows selects the specified rows. Only applicable if the selectionMode is set to
GridSelectionMode.SingleRow or GridSelectionMode.MultipleRows (default).
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.
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.
Returns
The cell that the column was moved next to, or undefined if the move was not valid
toggleSelection toggles the selection of the specified cell. Only applicable if the selectionMode is set to
GridSelectionMode.SingleCell or GridSelectionMode.MultipleCells.
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.
areAllRowsSelected 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).