ReportDesignerBuilder.ReportPreviewSettings(Action<ReportPreviewSettingsBuilder>) Method
In This Article
Specifies an action that uses the ReportPreviewSettingsBuilder instance to configure Report Designer Preview settings.
Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner
Assembly: DevExpress.AspNetCore.Reporting.v24.2.dll
NuGet Package: DevExpress.AspNetCore.Reporting
#Declaration
public ReportDesignerBuilder ReportPreviewSettings(
Action<ReportPreviewSettingsBuilder> configure
)
#Parameters
Name | Type | Description |
---|---|---|
configure | Action<Report |
A Action |
#Returns
Type | Description |
---|---|
Report |
A Report |
#Remarks
The following code snippet hides Search buttons (Ribbon and Side Panel) in Report Designer Preview:
cshtml
@{
var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
.Height("100%")
.ReportPreviewSettings(
p=>p.SearchSettings(
s=>s.SearchEnabled = false))
.Bind(new TestReport());
@designerRender.RenderHtml()
}
See Also