ReportDesignerClientSideEventsBuilder.CustomizeToolbox(String) Method

Sets the name of the JavaScript function or the entire code that will handle the Web Report Designer's CustomizeToolbox client-side event.

Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner

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

Syntax

public ReportDesignerClientSideEventsBuilder CustomizeToolbox(
    string callback
)

Parameters

Type Name Description
String callback

The name of a JavaScript function or the entire JavaScript function code used to handle the CustomizeToolbox event.

Returns

Type Description
ReportDesignerClientSideEventsBuilder

A ReportDesignerClientSideEventsBuilder that can be used to further configure the Report Designer Client Side Events.

The CustomizeToolbox event enables you to customize the Web Report Designer's Toolbox. When implementing a handling function, use the objects passed as parameters. The first parameter passes the event sender that is the ClientReportDesigner object. The second one is an object with the following field exposed.

  • ControlsFactory
    Provides information about all controls available in the Toolbox.

To register a custom control, use the registerControl method of the obtained ControlsFactory object. This method accepts the control name and the object that stores information about a custom toolbox item.