Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ReportPreviewSettings.SettingsSearch Property

Allows you to specify settings that apply to the Viewer search operations.

Namespace: DevExpress.XtraReports.Web.ReportDesigner

Assembly: DevExpress.XtraReports.v24.2.Web.WebForms.dll

NuGet Package: DevExpress.Web.Reporting

#Declaration

public WebDocumentViewerSearchSettings SettingsSearch { get; }

#Property Value

Type
WebDocumentViewerSearchSettings

#Property Paths

You can access this nested property as listed below:

Library Object Type Path to SettingsSearch
.NET Reporting Tools ASPxReportDesigner
.SettingsReportPreview .SettingsSearch
ASP.NET MVC Extensions ReportDesignerSettings
.SettingsReportPreview .SettingsSearch

#Remarks

The WebDocumentViewerSearchSettings class exposes properties that allow you to disable the search action or disable asynchronous search for the Report Designer Preview.

The following code snippet shows how to disable the search feature in the Report Designer for ASP.NET Core applications:

public IActionResult ReportDesigner(
    [FromServices] IReportDesignerModelBuilder reportDesignerModelBuilder,
    [FromQuery] string reportName) {
    reportName = string.IsNullOrEmpty(reportName) ? "TestReport" : reportName;
    var designerModel = reportDesignerModelBuilder
        .Report(reportName)
        .ReportPreviewSettings(s=>s.SearchSettings.SearchEnabled = false)
        .BuildModel();
    return View(designerModel);
}
See Also