expressappframework-devexpress-dot-persistent-dot-base-dot-actionattribute-a77e202f.md
Specifies a context for enabling the generated Action.
Namespace : DevExpress.Persistent.Base
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public MethodActionSelectionDependencyType SelectionDependencyType { get; set; }
Public Property SelectionDependencyType As MethodActionSelectionDependencyType
| Type | Description |
|---|---|
| MethodActionSelectionDependencyType |
A MethodActionSelectionDependencyType enumeration value identifying a context type.
|
Available values:
| Name | Description |
|---|---|
| RequireSingleObject |
Specifies that the Action is enabled when a single object is selected in the current View. Set the ActionAttribute’s category parameter to “RecordEdit”, to display the Action in a command column for each row in Blazor List Views.
| | RequireMultipleObjects |
Specifies that the Action is enabled when one or more objects are selected in the current View.
|
Use this property to specify the availability context for the Action which will be generated from the Action attribute’s target method. By default, this property is set to MethodActionSelectionDependencyType.RequireMultipleObjects.
See Also