DxReportDesignerCallbacks.ReportTabClosing Property
Specifies the JavaScript function that handles the Web Report Designer’s ReportTabClosing client-side event.
Namespace: DevExpress.Blazor.Reporting
Assembly: DevExpress.Blazor.Reporting.v25.2.JSBasedControls.Common.dll
NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.Common
Declaration
Property Value
| Type | Description |
|---|---|
| String | The name of a JavaScript function used to handle the |
Remarks
Handle the ReportTabClosing event to perform required actions before a report tab is closed in the Web Report Designer.
The handler function receives two parameters: the first parameter is the client-side Report Designer (the event sender) and the second parameter is an object with the following properties and methods:
Tab- Specifies the report tab currently being processed.
ReadyToClose
: Specifies the JQuery Deferred object, which when resolved, forces the report tab to be closed.
Handled- Specifies whether the event was handled.
The following example demonstrates how to use this event to prevent closing a specific report tab.
window.DesignerCustomization = {
onReportTabClosing: function (s, e) {
if (e.Tab.displayName() === "Invoice") {
e.ReadyToClose.reject();
e.Handled = true;
}
}
}