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

IReportDesignerModelBuilder.CustomControls(Type[]) Method

Registers custom controls in the Web End-User report Designer.

Namespace: DevExpress.XtraReports.Web.ReportDesigner.Services

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

IReportDesignerModelBuilder CustomControls(
    params Type[] controlTypes
)

#Parameters

Name Type Description
controlTypes Type[]

An array of custom control types.

#Returns

Type Description
IReportDesignerModelBuilder

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

#Remarks

The following code example registers a custom XRSwissQRBill report control in the Report Designer:

public IActionResult Designer([FromServices] IReportDesignerModelBuilder reportDesignerModelBuilder) {
    ReportDesignerModel model = reportDesignerModelBuilder
        .Report("TestReport")
        .CustomControls(typeof(XRSwissQRBill))
        .BuildModel();
    return View(model);
}

View Example

For more information on custom controls, review the following help topic: Create and Register a Custom Control in the Report Designer Toolbox (ASP.NET Core)).

See Also