ReportPreviewSettings.SettingsSearch Property
Allows you to specify settings that apply to the Viewer search operations.
Namespace: DevExpress.XtraReports.Web.ReportDesigner
Assembly: DevExpress.XtraReports.v24.1.Web.WebForms.dll
NuGet Package: DevExpress.Web.Reporting
Declaration
Property Value
Type |
---|
WebDocumentViewerSearchSettings |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to SettingsSearch |
---|---|---|
Reporting | ASPxReportDesigner |
|
ASP.NET MVC Extensions | ReportDesignerSettings |
|
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