Skip to main content
All docs
V25.1
  • ReportDesignerBuilder.ParameterEditingSettings(Action<ReportDesignerParameterEditingSettings>) Method

    Contains settings that configure user interface elements related to the editing of parameters, parameter groups, and parameter separators in the Web Report Designer.

    Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner

    Assembly: DevExpress.AspNetCore.Reporting.v25.1.dll

    NuGet Package: DevExpress.AspNetCore.Reporting

    Declaration

    public ReportDesignerBuilder ParameterEditingSettings(
        Action<ReportDesignerParameterEditingSettings> configure
    )

    Parameters

    Name Type Description
    configure Action<ReportDesignerParameterEditingSettings>

    A Action delegate method that allows you to specify editing settings parameters, parameter groups, and parameter separators.

    Returns

    Type Description
    ReportDesignerBuilder

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

    Remarks

    Use the following properties to change the editing settings of parameters, parameter groups, and parameter separators in the Web Report Designer:

    AllowEditParameterCollection
    Hides the UI elements that allow users to add and delete parameters.
    AllowEditParameterGroups
    Hides the UI elements that allow users to add and delete parameter groups.
    AllowEditParameterSeparators
    Hides the UI elements that allow users to add and delete parameter separators.
    AllowEditProperties
    Allows you to disable all property editors for parameters and parameter groups.
    AllowReorderParameters
    Hides UI elements that allow users to reorder parameters, parameter groups, and parameter separators.

    The following code snippet makes parameters, parameter groups, and separators read-only for users (users cannot add or delete parameters/groups/separators, edit their properties, and reorder them). Note that the techniques vary depending on whether you bind the Web Report Designer to a report object (or by a report name) or to a ReportDesignerModel object.

    @{
        var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
            .Height("100%")
            .ParameterEditingSettings(configure => {
                configure.AllowEditParameterCollection = false;
                configure.AllowEditParameterSeparators = false;
                configure.AllowEditParameterGroups = false;
                configure.AllowEditProperties = false;
                configure.AllowReorderParameters = false;})
            .Height("100%")
            .Bind("TestReport");
        @designerRender.RenderHtml()
    }
    

    You can handle the CustomizeParameterProperties event to implement a more tailored solution (for example, disable only specific property editors).

    See Also