ReportDesignerWizardSettings.EnableMongoDBDataSource Property
Gets or sets whether the Specify Data Source Settings (MongoDB) page is enabled in the Report Wizard and Data Source Wizard.
Namespace: DevExpress.XtraReports.Web.ReportDesigner
Assembly: DevExpress.XtraReports.v25.2.Web.WebForms.dll
NuGet Package: DevExpress.Web.Reporting
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | true |
|
Property Paths
You can access this nested property as listed below:
| Library | Object Type | Path to EnableMongoDBDataSource |
|---|---|---|
| ASP.NET MVC Extensions | ReportDesignerSettings |
|
| .NET Reporting Tools | ASPxReportDesigner |
|
Remarks
The following code example hides the MongoDB item in the Select Data Source type wizard page:
public IActionResult ReportDesigner(
[FromServices] IReportDesignerModelBuilder reportDesignerModelBuilder,
[FromQuery] string reportName) {
reportName = string.IsNullOrEmpty(reportName) ? "TestReport" : reportName;
var designerModel = reportDesignerModelBuilder
.Report(reportName)
.WizardSettings(s => {
s.EnableMongoDBDataSource = false;
})
.BuildModel();
return View(designerModel);
}
See Also