Skip to main content
All docs
V24.2

ReportDesignerBuilder.ReportPreviewSettings(Action<ReportPreviewSettingsBuilder>) Method

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<ReportPreviewSettingsBuilder>

A Action<T> delegate method that allows you to specify Report Designer Preview settings.

Returns

Type Description
ReportDesignerBuilder

A ReportDesignerBuilder that can be used to further configure the Report Designer.

Remarks

The following code snippet hides Search buttons (Ribbon and Side Panel) in Report Designer Preview:

@{
    var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
        .Height("100%")
        .ReportPreviewSettings(
            p=>p.SearchSettings(
                s=>s.SearchEnabled = false))
        .Bind(new TestReport());
    @designerRender.RenderHtml()
}
See Also