Back to Devexpress

ActionAttribute.SelectionDependencyType Property

expressappframework-devexpress-dot-persistent-dot-base-dot-actionattribute-a77e202f.md

latest2.3 KB
Original Source

ActionAttribute.SelectionDependencyType Property

Specifies a context for enabling the generated Action.

Namespace : DevExpress.Persistent.Base

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public MethodActionSelectionDependencyType SelectionDependencyType { get; set; }
vb
Public Property SelectionDependencyType As MethodActionSelectionDependencyType

Property Value

TypeDescription
MethodActionSelectionDependencyType

A MethodActionSelectionDependencyType enumeration value identifying a context type.

|

Available values:

NameDescription
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.

|

Remarks

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

ActionAttribute Class

ActionAttribute Members

DevExpress.Persistent.Base Namespace