Skip to main content
All docs
V25.2
  • 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

    [DefaultValue(true)]
    public bool EnableMongoDBDataSource { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true, to enable the Specify Data Source Settings (MongoDB) page; otherwise, false.

    Property Paths

    You can access this nested property as listed below:

    Library Object Type Path to EnableMongoDBDataSource
    ASP.NET MVC Extensions ReportDesignerSettings
    .SettingsWizard .EnableMongoDBDataSource
    .NET Reporting Tools ASPxReportDesigner
    .SettingsWizard .EnableMongoDBDataSource

    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