ReportDesignerClientSideEventsBuilder.ExitDesigner(String) Method

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

Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner

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

Declaration

public ReportDesignerClientSideEventsBuilder ExitDesigner(
    string callback
)

Parameters

Name Type Description
callback String

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

Returns

Type Description
ReportDesignerClientSideEventsBuilder

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

Remarks

The ExitDesigner event occurs on the client side when the Web Report Designer is being closed. In the handler function you can use the client designer model passed as the s parameter.

The following code redirects to the Viewer page when the user clicks Exit in the Web End User Report Designer:

@{
    var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
        .Height("1000px")
        .ClientSideEvents(configure =>
        {
            configure.ExitDesigner("onExitDesigner");
        })
        .Bind("TestReport");
    @designerRender.RenderHtml()
}
See Also