Back to Devexpress

ReportDesignerClientSideEventsBuilder.CustomizeWizard(String) Method

xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-reportdesigner-dot-reportdesignerclientsideeventsbuilder-dot-customizewizard-x28-system-dot-string-x29.md

latest3.8 KB
Original Source

ReportDesignerClientSideEventsBuilder.CustomizeWizard(String) Method

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

Namespace : DevExpress.AspNetCore.Reporting.ReportDesigner

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

NuGet Package : DevExpress.AspNetCore.Reporting

Declaration

csharp
public ReportDesignerClientSideEventsBuilder CustomizeWizard(
    string callback
)
vb
Public Function CustomizeWizard(
    callback As String
) As ReportDesignerClientSideEventsBuilder

Parameters

NameTypeDescription
callbackString

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

|

Returns

TypeDescription
ReportDesignerClientSideEventsBuilder

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

|

Remarks

The CustomizeWizard event enables you to customize the Web Report Designer’s Report Wizard and Data Source Wizard.

The event’s argument has the following properties:

@{
    var reportDesigner = Html.DevExpress().ReportDesigner("reportDesigner")
        .Height("1000px")
        .Bind("Report")
        .ClientSideEvents(configure => { configure.CustomizeWizard("CustomizeWizard"); });
}
@reportDesigner
javascript
<script type="text/javascript">
    function beforeInit(args) {
       // ...
    }

    function CustomizeWizard(s, e) {
        if (e.Type === "ReportWizard") {
            e.Wizard.events.addHandler("beforeInitialize", beforeInit)
        }
    }
</script>

See Customize the Report Wizard and Data Source Wizard (ASP.NET Core) for more information.

See Also

ReportDesignerClientSideEventsBuilder Class

ReportDesignerClientSideEventsBuilder Members

DevExpress.AspNetCore.Reporting.ReportDesigner Namespace