aspnetmvc-devexpress-dot-web-dot-mvc-dot-reportdesignersettings-744553bd.md
Defines the callback routing logic by specifying the names of a Controller and an Action which should handle callbacks related to saving a report definition.
Namespace : DevExpress.Web.Mvc
Assembly : DevExpress.Web.Mvc5.v25.2.dll
NuGet Package : DevExpress.Web.Mvc5
public object SaveCallbackRouteValues { get; set; }
Public Property SaveCallbackRouteValues As Object
| Type | Description |
|---|---|
| Object |
An object containing the Controller and Action names.
|
The SaveCallbackRouteValues property specifies the names of a Controller and an Action which should be handled to save a report to the desired storage. This Action is also generated in the specified Controller.
@model DevExpress.XtraReports.UI.XtraReport
@Html.DevExpress().ReportDesigner(settings => {
settings.Name = "designer";
settings.SaveCallbackRouteValues = new { Controller = "Home",
Action = "ReportDesignerSaveLayout" };
}).Bind(Model).GetHtml()
public class HomeController : Controller {
public ActionResult Index() {
return View(new MyXtraReport());
}
[HttpPost]
public ActionResult ReportDesignerSaveLayout() {
byte[] reportLayout = ReportDesignerExtension.GetReportXml("designer");
}
}
See Also