Back to Devexpress

TreeListOptionsView.WaitAnimationOptions Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-b90bb698.md

latest4.1 KB
Original Source

TreeListOptionsView.WaitAnimationOptions Property

Gets or sets a value that specifies how the control indicates data operations performed in a background thread.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

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 enumeration value, such as Panel or Indicator , that specify how the control indicates data operations performed in a background thread. The Default is Panel.

|

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
TreeList

.OptionsView .WaitAnimationOptions

|

Remarks

You can indicate to end-users that the tree list control performs data operations in a background thread by calling the TreeList.ShowLoadingPanel and TreeList.HideLoadingPanel methods, or using the TreeList.LoadingPanelVisible property. By default, the Loading Panel is displayed as shown in the figure below.

Insead of the Loading Panel that overlaps the tree list control data, you can show a tiny indicator in the top near cell of the tree list grid by setting the WaitAnimationOptions property to Indicator.

csharp
treeList1.OptionsView.WaitAnimationOptions = DevExpress.XtraEditors.WaitAnimationOptions.Indicator;
vb
TreeList1.OptionsView.WaitAnimationOptions = DevExpress.XtraEditors.WaitAnimationOptions.Indicator

See the result below.

See Also

ShowLoadingPanel()

HideLoadingPanel()

LoadingPanelVisible

TreeListOptionsView Class

TreeListOptionsView Members

DevExpress.XtraTreeList Namespace