PrintSelectionBaseController.ShowInReportActionEnableMode Property
Specifies when the PrintSelectionBaseController.ShowInReportAction is disabled with regard to data modifications in the current View.
Namespace: DevExpress.ExpressApp.ReportsV2
Assembly: DevExpress.ExpressApp.ReportsV2.v24.2.dll
NuGet Package: DevExpress.ExpressApp.ReportsV2
#Declaration
public PrintSelectionBaseController.ActionEnabledMode ShowInReportActionEnableMode { get; set; }
#Property Value
Type | Description |
---|---|
Print |
An Action |
Available values:
Name |
---|
None |
Modified |
View |
#Remarks
Data for a selected report is always read from a separate Object Space, so unsaved changes are not included. To specify the Action availability when there are changes in the current View, use one of the following values:
- None - Action is not disabled.
- ModifiedChanged - Action is disabled in accordance with the IObjectSpace.ModifiedChanged event. Used in WinForms applications by default.
- ViewMode - Action is disabled depending on the DetailView.ViewEditMode property. Used in ASP.NET Web Forms applications by default.
The ShowInReportActionEnableMode default value is taken from the static PrintSelectionBaseController.ShowInReportActionEnableModeDefault field. This field is initialized by the ReportsWindowsFormsModule and ReportsAspNetModule classes. Handle the XafApplication.SetupComplete event to modify the default value, or introduce a new Controller, access the PrintSelectionBaseController controller and change the ShowInReportActionEnableMode property value.