ChoiceActionBase.ShowItemsOnClick Property
Specifies whether to show the drop-down with the current Action’s items when the Action is clicked in WinForms or ASP.NET Web Forms applications.
Namespace: DevExpress.ExpressApp.Actions
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true, if the drop-down list of items is shown when clicking the Action; false - if the Action is executed. |
Remarks
To specify the Choice Action Item executed by default when ShowItemsOnClick is false, use the ChoiceActionBase.DefaultItemMode property. You can set whether to always execute the first active item in the ChoiceActionBase.Items collection, or to execute the previously executed item.
The ShowItemsOnClick property’s false value affects how ChoiceActionBase Actions’ controls are rendered (for example, the NewObjectViewController.NewObjectAction‘s control):
As an Action’s default button, if the SingleChoiceAction.Items collection (inherited from ChoiceActionBase.Items) contains one visible item.
As a drop-down control with a triangle glyph, if the collection includes more than one item.
If the ShowItemsOnClick property’s value is true, ChoiceActionBase Actions always have drop-down controls and you can execute the required action only from the drop-down.