ActionAttribute.SelectionDependencyType Property
Specifies a context for enabling the generated Action.
Namespace: DevExpress.Persistent.Base
Assembly: DevExpress.ExpressApp.v19.1.dll
Declaration
Property Value
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.Category property to “RecordEdit”, to display the Action in an additional cell for each object in the ASP.NET Web application’s 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.