Back to Devexpress

Ways to Hide or Disable an Action (Button, Menu Command)

expressappframework-403709-ui-construction-controllers-and-actions-actions-ways-to-hide-or-disable-an-action.md

latest5.4 KB
Original Source

Ways to Hide or Disable an Action (Button, Menu Command)

  • Jun 12, 2024
  • 3 minutes to read

You can hide or disable an Action. If an Action (button) is disabled, it is grayed out. The table below shows different Action states.

|

Description

|

Image

| | --- | --- | |

The Clear tasks Action is active.

|

| |

The Clear tasks Action is disabled.

|

| |

The Clear tasks Action is hidden.

|

|

XAF allows you to change the state of custom and built-in Actions. The following topic describes how to identify built-in Actions: Determine an Action’s Controller and Identifier.

Ways to Disable an Action

You can utilize the following techniques to disable an Action (button, menu item):

Ways to Hide an Action

You can utilize the following techniques to hide an Action (button, menu item):

See Also

Define the Scope of Controllers and Actions

Hide or Disable an Action (Button, Menu Item) in Code