Back to Devexpress

GridOptionsView.WaitAnimationOptions Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsview-9897cf3a.md

latest4.9 KB
Original Source

GridOptionsView.WaitAnimationOptions Property

Gets or sets how async data loading operations are indicated. This property is in effect in Instant Feedback Mode.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(WaitAnimationOptions.Default)]
[XtraSerializableProperty]
public virtual WaitAnimationOptions WaitAnimationOptions { get; set; }
vb
<DefaultValue(WaitAnimationOptions.Default)>
<XtraSerializableProperty>
Public Overridable Property WaitAnimationOptions As WaitAnimationOptions

Property Value

TypeDefaultDescription
WaitAnimationOptionsDefault

A WaitAnimationOptions object that specifies how async data loading operations are indicated.

|

Available values:

NameDescription
Default

The same as the WaitAnimationOptions.Indicator option.

| | Indicator |

Background operations are indicated within a dedicated indicator button.

For the GridControl, these operations are indicated within the Header Panel Button.

| | Panel |

Background operations are indicated within a special panel displayed above a control.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to WaitAnimationOptions
GridView

.OptionsView .WaitAnimationOptions

|

Remarks

You can manually display the Loading Panel to indicate the process of data loading via the GridView.ShowLoadingPanel method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WaitAnimationOptions property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-implement-crud-operations-xpinstantfeedbacksource/CS/DXServermode2/Form1.cs#L35

csharp
gridView1.AsyncCompleted += new EventHandler(gridView1_AsyncCompleted);
gridView1.OptionsView.WaitAnimationOptions = WaitAnimationOptions.Panel;
gridControl.DataSource = xpInstantFeedbackSource1;

winforms-grid-implement-crud-operations-xpinstantfeedbacksource/VB/DXServermode2/Form1.vb#L28

vb
AddHandler gridView1.AsyncCompleted, New EventHandler(AddressOf gridView1_AsyncCompleted)
gridView1.OptionsView.WaitAnimationOptions = WaitAnimationOptions.Panel
gridControl.DataSource = xpInstantFeedbackSource1

See Also

AsyncCompleted

IsAsyncInProgress

ShowLoadingPanel()

Large Data Sources: Server and Instant Feedback Modes

GridOptionsView Class

GridOptionsView Members

DevExpress.XtraGrid.Views.Grid Namespace