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 Class

Represents the ancestor for Actions that provide items to be chosen by an end-user.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public abstract class ChoiceActionBase :
    ActionBase,
    IComplexChoiceAction

#Remarks

Currently, the ChoiceActionBase class has a single descendant - the SingleChoiceAction. This descendant allows end-users to select a single item in the ChoiceActionBase.Items collection. This collection is provided by the ChoiceActionBase class. Each collection item can have child items as well. So, you can form a tree within this collection.

You can specify how to display a Choice Action, if its Items collection is empty. For instance, this Action can be disabled or made invisible (see ChoiceActionBase.EmptyItemsBehavior).

You can specify whether to execute a Choice Action when clicking it, or show its drop-down with items (see ChoiceActionBase.ShowItemsOnClick). To specify the Choice Action Item that is executed by default, use the ChoiceActionBase.DefaultItemMode property. You can set whether to always execute the first active item in Items collection or to execute the previously executed item.

#Implements

See Also