Skip to main content

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

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.v24.2.dll

NuGet Package: DevExpress.AspNetCore.Reporting

#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