Core Features

Advanced Features

JavaScript Data GridLoading Rows

Version 36.2.0

The Client-Side Row Model can display skeleton rows instead of the loading overlay while row data is loading.

For loading rows managed by a server-side datasource, see Server-Side Row Model Loading Rows.

Enabling Loading Rows Copy Link

Set loadingRows=true to use skeleton rows when loading=true. Ten rows are displayed by default. Alternatively, provide LoadingRowsOptions with rowCount to configure the number displayed.

const gridOptions = {
    loading: true,
    loadingRows: {
        rowCount: 10,
    },

    // other grid options ...
}
loadingCopy Link
boolean
default: undefined
Show or hide the loading UI.
  • true: the loading overlay is shown, or skeleton rows if loadingRows is enabled (Client-Side Row Model only).
  • false: the loading UI is hidden.
  • undefined: the grid will automatically show the loading overlay until rowData and columnDefs are provided. (Client Side Row Model only)
  • loadingRowsCopy Link
    boolean | LoadingRowsOptions
    default: false
    Display skeleton rows instead of the loading overlay when loading=true (Client-Side Row Model only). Set to true to display ten rows, or provide options to configure the row count. This option does not start loading; set loading=true to show the skeleton rows.

    Loading rows are visual placeholders and are not included in Client-Side Row Model operations such as sorting, filtering, grouping or selection. When loading finishes, set loading=false to display the row data.

    Both options can be updated at runtime. Update loadingRows to change the row count while loading, or set it to false to switch back to the overlay without ending the loading state.

    Custom Loading Cells Copy Link

    Set loadingCellRenderer and loadingCellRendererParams on a column definition to customise that column, or on defaultColDef to customise every loading cell. See Loading Cell Component for component interfaces, parameters and dynamic component selection.

    The following example uses a custom loading component for the Athlete column while the other columns retain the default skeleton effect.