# Busy Indicator

RadGridView enables you to display a notification whenever a longer-running process is being handled by the control by incorporating a [RadBusyIndicator](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/overview) inside its control template. This makes the UI more informative and the user experience smoother.

## Enabling the Indicator

To activate the indicator you have to set RadGridView's **IsBusy** boolean property to **True**.

**Example 1: Setting the IsBusy property**

```XAML
<telerik:RadGridView IsBusy="True"/>
```

You can data bind this property in any way that suits your custom logic. Note that the indicator will be visible only when the **IsBusy** property is set to **True**.

> caption RadGridView with busy indicator

![Telerik UI for WPF RadGridView busy indicator displayed while loading data](https://www.telerik.com/products/wpf/documentation/assets/1f9bcc291d3ceb1cd6e90ebca463a8eb/gridview-features-isbusy.gif)

## Progress Determination

The indicator itself can be either determined or indetermined. These correspond to the following scenarios:

* a specific period of time

* an indetermined amount of time

The default the indicator is indetermined. If you need a determined **RadBusyIndicator** you have to set the value of the **BusyIndicatorIsIndeterminate** property of the RadGridView control to **False**.

In this case you also need to specify the **BusyIndicatorProgressValue** property, which will indicate how much of the predefined time has already elapsed. You can set its value through XAML or code-behind. However, to get the most out of it, you have to bind it to a percentage value (between 0 and 100) indicating the state of the ongoing process. If it is less or equal to 0 the donut will be empty and when it is grater or equal to 100 the donut will be filled.

**Example 2: Defining a determined indicator**

```XAML
<telerik:RadGridView BusyIndicatorIsIndeterminate="False" BusyIndicatorProgressValue="67" />
```

> caption RadGridView with determined busy indicator

![Telerik UI for WPF RadGridView determined busy indicator showing progress value](https://www.telerik.com/products/wpf/documentation/assets/35b77edbe6cb67586ec1a8e0c5d5e543/gridview-features-progress-value.png)

> A good example of how to define and update a determined busy indicator has been demonstrated in the [following article](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/features/report-progress-value).

## Custom Busy Content

RadGridView also provides the option to customize what's shown as the indicator's content while it is active through the **BusyIndicatorContent** and **BusyIndicatorContentTemplate** properties.

**Example 3: Setting BusyIndicatorContent**

```XAML
<telerik:RadGridView BusyIndicatorContent="Loading data..." />
```

**Example 4: Setting BusyIndicatorContentTemplate**

```XAML
<telerik:RadGridView>
       <telerik:RadGridView.BusyIndicatorContentTemplate>
           <DataTemplate>
               <StackPanel Orientation="Horizontal" DataContext="{Binding RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}">
                   <TextBlock Text="Loading... " FontWeight="Bold" />
                   <TextBlock Text="{Binding BusyIndicatorProgressValue}" FontWeight="Bold" />
                   <TextBlock Text="%" FontWeight="Bold" />
               </StackPanel>
           </DataTemplate>
       </telerik:RadGridView.BusyIndicatorContentTemplate>
</telerik:RadGridView>
```

> caption RadGridView with busy indicator with custom content template

![Telerik UI for WPF RadGridView busy indicator with custom content template showing loading percentage](https://www.telerik.com/products/wpf/documentation/assets/9358a01ea3170f836ed75cce5bd500dc/gridview-features-content-template.png)

## See Also

* [RadBusyIndicator](https://www.telerik.com/products/wpf/documentation/controls/radbusyindicator/overview)
