Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChoiceActionBase.EmptyItemsBehavior Property

Specifies how to display a Choice Action if its ChoiceActionBase.Items collection is empty.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[DefaultValue(EmptyItemsBehavior.Deactivate)]
public EmptyItemsBehavior EmptyItemsBehavior { get; set; }

#Property Value

Type Default Description
EmptyItemsBehavior Deactivate

A EmptyItemsBehavior enumeration value identifying the Choice Action behavior.

Available values:

Name Description
None

A Choice Action’s control is displayed with an empty drop-down list if the ChoiceActionBase.Items collection is empty.

Disable

A Choice Action’s control is disabled if the ChoiceActionBase.Items collection is empty.

Deactivate

A Choice Action’s control is invisible if the ChoiceActionBase.Items collection is empty.

#Remarks

The following values are available:

  • None

    The Action’s control is displayed with an empty drop-down list.

  • Disable

    The Action is disabled.

  • Deativate

    The Action is deactivated. So, it will not be visible at all.

By default, the Diactivate value is set.

See Also