Back to Devexpress

ActionBase.TargetObjectsCriteriaMode Property

expressappframework-devexpress-dot-expressapp-dot-actions-dot-actionbase-3e80f018.md

latest3.0 KB
Original Source

ActionBase.TargetObjectsCriteriaMode Property

Specifies whether all the currently selected objects must satisfy the ActionBase.TargetObjectsCriteria criteria to make an Action enabled.

Namespace : DevExpress.ExpressApp.Actions

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[DefaultValue(TargetObjectsCriteriaMode.TrueAtLeastForOne)]
public TargetObjectsCriteriaMode TargetObjectsCriteriaMode { get; set; }
vb
<DefaultValue(TargetObjectsCriteriaMode.TrueAtLeastForOne)>
Public Property TargetObjectsCriteriaMode As TargetObjectsCriteriaMode

Property Value

TypeDefaultDescription
TargetObjectsCriteriaModeTrueAtLeastForOne

A TargetObjectsCriteriaMode enumeration value that indicates whether all selected object or at least one of them must satisfy the ActionBase.TargetObjectsCriteria criteria.

|

Available values:

NameDescription
TrueAtLeastForOne

At least one of the selected objects in a View must satisfy the criteria specified by the ActionBase.TargetObjectsCriteria property to enable the Action.

| | TrueForAll |

All the objects selected in a View must satisfy the criteria specified by the ActionBase.TargetObjectsCriteria property to enable the Action.

|

Remarks

When specifying the ActionBase.TargetObjectsCriteria property, specify the TargetObjectsCriteriaMode property as well. The following values are available:

  • TrueAtLeastForOne

  • TrueForAll

See Also

SelectedObjects

SelectedObjects

Define the Scope of Controllers and Actions

ActionBase Class

ActionBase Members

DevExpress.ExpressApp.Actions Namespace