diff --git a/frontend/src/shared/ui/components/KsDataGrid.vue b/frontend/src/shared/ui/components/KsDataGrid.vue index e5ef601a..f9382add 100644 --- a/frontend/src/shared/ui/components/KsDataGrid.vue +++ b/frontend/src/shared/ui/components/KsDataGrid.vue @@ -181,8 +181,11 @@ function focusRow(rowIndex: number, colKey?: string): void { setTimeout(attempt, 150) } +function redrawRows(): void { + gridApi.value?.redrawRows() +} -import type { NavigateToNextCellParams, CellPosition, CellEditingStoppedEvent } from 'ag-grid-community' +import type { NavigateToNextCellParams, CellPosition } from 'ag-grid-community' @@ -231,7 +234,7 @@ function navigateToNextCell(params: NavigateToNextCellParams): CellPosition | nu return suggestedNextCell } -defineExpose({ focusRow, gridApi }) +defineExpose({ focusRow, redrawRows, gridApi })