Skip to content

DataGridRef

Ref handle for the DataGrid component.

PropertyTypeDescription
elementDataGridElement<TRow> | unknownThe underlying grid DOM element with proper typing
getConfig() => Promise<Readonly<GridConfig<TRow>>>Get the effective configuration
ready() => Promise<void>Wait for the grid to be ready
forceLayout() => Promise<void>Force a layout recalculation
toggleGroup(key: string) => Promise<void>Toggle a group row
registerStyles(id: string, css: string) => voidRegister custom styles
unregisterStyles(id: string) => voidUnregister custom styles
setRowLoading(rowId: string, loading: boolean) => voidSet loading state for a specific row
setCellLoading(rowId: string, field: string, loading: boolean) => voidSet loading state for a specific cell
isRowLoading(rowId: string) => booleanCheck if a row is in loading state
isCellLoading(rowId: string, field: string) => booleanCheck if a cell is in loading state
clearAllLoading() => voidClear all loading states (grid, rows, and cells)
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt