ReportDesignerSettings.SettingsParameterEditing Property
Allows you to specify settings that configure user interface elements related to the editing of parameters, parameter groups, and parameter separators in the Web Report Designer.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
ReportDesignerParameterEditingSettings | An object that specifies the search settings. |
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 parameters groups.
- AllowReorderParameters
- Hides the UI 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) in ASP.NET MVC applications:
@Html.DevExpress().ReportDesigner(settings => {
settings.Name = "ReportDesigner1";
settings.SettingsParameterEditing.AllowEditParameterCollection = false;
settings.SettingsParameterEditing.AllowEditParameterGroups = false;
settings.SettingsParameterEditing.AllowEditParameterSeparators = false;
settings.SettingsParameterEditing.AllowEditProperties = false;
settings.SettingsParameterEditing.AllowReorderParameters = false;
}).BindToUrl("TestReport").GetHtml()
You can handle the CustomizeParameterProperties event to implement a more tailored solution (for example, disable only specified property editors).