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

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:

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