Skip to main content
All docs
V23.2

ReportPreviewSettings.SettingsSearch Property

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

Namespace: DevExpress.XtraReports.Web.ReportDesigner

Assembly: DevExpress.XtraReports.v23.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
Reporting 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