xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-reportdesigner-dot-reportdesignerclientsideeventsbuilder-dot-reportsaved-x28-system-dot-string-x29.md
Sets the name of the JavaScript function or the entire code that will handle the Web Report Designer‘s ReportSaved client-side event.
Namespace : DevExpress.AspNetCore.Reporting.ReportDesigner
Assembly : DevExpress.AspNetCore.Reporting.v25.2.dll
NuGet Package : DevExpress.AspNetCore.Reporting
public ReportDesignerClientSideEventsBuilder ReportSaved(
string callback
)
Public Function ReportSaved(
callback As String
) As ReportDesignerClientSideEventsBuilder
| Name | Type | Description |
|---|---|---|
| callback | String |
The name of a JavaScript function or the entire JavaScript function code used to handle the ReportSaved event.
|
| Type | Description |
|---|---|
| ReportDesignerClientSideEventsBuilder |
A ReportDesignerClientSideEventsBuilder that can be used to further configure the Report Designer Client Side Events.
|
The ReportOpened event enables you to respond to saving a report to a server-side report storage of the Web Report Designer. 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 structure.
Url
The URL of the report currently being processed.
Report
The report currently being processed.
The code sample below demonstrates how to close the tab displaying the report that has been saved.
@{
var designer = Html.DevExpress().ReportDesigner("reportDesigner1").Height("1000px")
.Bind(Model.Report)
.DataSources(configureDS => { foreach (var ds in Model.DataSources) { configureDS.Add(ds.Key, ds.Value); } })
.ClientSideEvents(configure => { configure.ReportSaved("reportSaved"); });
}
@designer
<script type="text/javascript" id="script">
function reportSaved(s, e) {
s.CloseCurrentTab();
}
</script>
See Also
ReportDesignerClientSideEventsBuilder Class