ReportDesignerBuilder.DataSourceSettings(Action<DataSourceSettings>) Method
Specifies settings that configure the user interface related to the data sources in the Report Designer.
Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner
Assembly: DevExpress.AspNetCore.Reporting.v24.1.dll
NuGet Package: DevExpress.AspNetCore.Reporting
Declaration
Parameters
Name | Type | Description |
---|---|---|
configure | Action<DataSourceSettings> | An Action<T> delegate method that allows you to specify settings for the Web Report Designer View Model. |
Returns
Type | Description |
---|---|
ReportDesignerBuilder | A ReportDesignerBuilder that can be used to further configure the Report Designer. |
Remarks
The following code hides the Add Data Source button and UI elements that allow the user to change and delete the data source and queries in the Field List:
@{
var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
.DataSourceSettings(configure => {
configure.AllowAddDataSource = false;
configure.AllowEditDataSource = false;
configure.AllowRemoveDataSource = false;
})
.Height("100%")
.Bind("TestReport");
@designerRender.RenderHtml()
}
The Field List with hidden actions is shown in the following image:
See Also