Skip to main content
.NET 6.0+

ActionBase.TargetViewId Property

Specifies the identifier of the View for which the Action is activated, or a semicolon-separated list of identifiers if the Action targets multiple Views.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[DefaultValue(null)]
public string TargetViewId { get; set; }

Property Value

Type Default Description
String null

A string value that is a View identifier or a semicolon-separated list of View identifiers.

Remarks

If an Action is contained in a View Controller, you can specify the ID of the View that must be displayed to activate the Action. The TargetViewId property is set to “Any” (the ActionBase.AnyCaption constant value) by default which means that the Action is activated in any View where the View Controller is activated. You can set another TargetViewId value in the Controller’s constructor and specify the identifier of a View to activate the Action for a specific View. You can also specify multiple target Views by separating their identifiers with a semicolon (;). The Action will be activated for each listed View. The TargetViewId value is passed to the Application Model‘s IModelAction.TargetViewId property.

See Also