# Loading Animation

The Grid can show a loading animation during data operations that take more than 600ms to complete. This improves the user experience with a visual hint that the requested action is still running and prevents repetitive user actions.

The animation appears as a loading indicator over the Blazor Data Grid.

## Basics

The Grid `EnableLoaderContainer` parameter determines if the component will show a built-in LoaderContainer for long-running operations. The loading animation is enabled by default. The data operations that trigger the loading animation include:

* [Paging](https://www.telerik.com/blazor-ui/documentation/components/grid/paging)
* [Filtering](https://www.telerik.com/blazor-ui/documentation/components/grid/filter/overview)
* [Sorting](https://www.telerik.com/blazor-ui/documentation/components/grid/sorting)
* [Grouping](https://www.telerik.com/blazor-ui/documentation/components/grid/grouping/overview)
* [Expanding groups with load-on-demand](https://www.telerik.com/blazor-ui/documentation/components/grid/grouping/load-on-demand)
* [Creating, deleting, or editing records](https://www.telerik.com/blazor-ui/documentation/components/grid/editing/overview)

## Show LoaderContainer on Initial Load

The Grid does not display a loading animation during its initial rendering and data load. The component cannot know when or even if data will be provided to it, especially when using the Grid `Data` parameter. An initial automatic loading sign can either show indefinitely, or it could prevent the user from altering any saved Grid state (such as changing filters).

If you want to display a loading animation on initial load, you can use a [LoaderContainer component](https://www.telerik.com/blazor-ui/documentation/components/loadercontainer/overview). See the example below or the [Grid Loading Animation Live Demo](https://demos.telerik.com/blazor-ui/grid/loading-animation).

## Example

The following example binds the Grid with an [`OnRead` event handler](https://www.telerik.com/blazor-ui/documentation/common-features/data-binding/onread). To show an external initial [LoaderContainer over the Grid](https://www.telerik.com/blazor-ui/documentation/components/loadercontainer/overview#fill-a-parent-container) when using the `Data` parameter, you can control the LoaderContainer's rendering or visibility, depending on whether the data collection is null.

> caption Using an external and the built-in Grid loading animation

<demo metaUrl="client/grid/loading-animation/" height="500"></demo>

## See Also

* [Grid Data Binding](https://www.telerik.com/blazor-ui/documentation/components/grid/data-binding)
* [Live Demo: Grid Loading Animation](https://demos.telerik.com/blazor-ui/grid/loading-animation)
* [Blazor Grid](https://www.telerik.com/blazor-ui/documentation/components/grid/overview)
