Steps to reproduce:
- Create a new ASP.NET Core application (Use .NET CLI Templates).
- Change Designer.cshtml to use this method overload for "TestReport": https://docs.devexpress.com/XtraReports/DevExpress.AspNetCore.Reporting.ReportDesigner.ReportDesignerBuilder.Bind(System.String).
- Run the project, modify the report and try to save it.
Expected results:
No dialog appears with the exception of the toast / snackbar notification.
Current results:
The "Save As" dialog appears.
You can work around this issue by binding to a ReportDesignerModel instead of a string.
In your controller:
var designerModel = reportDesignerModelBuilder .Report(reportUri) .DataSources(dataSources) .BuildModel(); return View("Designer", new DesignerVM { DesignerModel = designerModel, /// your other VM data here //// });
Then, in your cshtml, bind to @Model.DesignerModel where you used to bind to @Model.ReportUri:
var designerRender = Html.DevExpress().ReportDesigner().Bind(@Model.DesignerModel)