.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.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.v20.2.dll


public string TargetViewId { get; set; }
Public Property TargetViewId As String

Property Value

Type Description

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


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. By default, the TargetViewId property is set to "Any" (the ActionBase.AnyCaption constant value) 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