Back to Devexpress

ReportDesignerSettings.SaveCallbackRouteValues Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-reportdesignersettings-744553bd.md

latest2.2 KB
Original Source

ReportDesignerSettings.SaveCallbackRouteValues Property

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

Declaration

csharp
public object SaveCallbackRouteValues { get; set; }
vb
Public Property SaveCallbackRouteValues As Object

Property Value

TypeDescription
Object

An object containing the Controller and Action names.

|

Remarks

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.

cshtml
@model DevExpress.XtraReports.UI.XtraReport  

@Html.DevExpress().ReportDesigner(settings => {  
    settings.Name = "designer";  
    settings.SaveCallbackRouteValues = new { Controller = "Home",  
        Action = "ReportDesignerSaveLayout" };  
}).Bind(Model).GetHtml()
cs
public class HomeController : Controller {  
    public ActionResult Index() {  
        return View(new MyXtraReport());  
    }  

    [HttpPost]  
    public ActionResult ReportDesignerSaveLayout() {  
        byte[] reportLayout = ReportDesignerExtension.GetReportXml("designer");  

    }  
}

See Also

Get Started

Callback-Based Functionality

ReportDesignerSettings Class

ReportDesignerSettings Members

DevExpress.Web.Mvc Namespace