Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ReportDesignerModel Class

A model that contains information about a report. The Web Report Designer is bound to this model.

Namespace: DevExpress.XtraReports.Web.ReportDesigner

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

public class ReportDesignerModel :
    ReportDesignerSettingsBase

#Remarks

To generate the ReportDesignerModel object and assign values to the object properties, use the ReportDesignerExtension.GetModel method. After that, the MVCxReportDesigner can be bound to a ReportDesignerModel via the ReportDesignerExtension.Bind method in the web application’s View.

The following code demonstrates how to generate this model and bind the MVCxReportDesigner to it in an ASP.NET MVC web application.

Controller code:

using DevExpress.Web.Mvc;
using DevExpress.XtraReports.Native;
using DevExpress.XtraReports.UI;
//...

public class DesignerController : Controller {
    //...
    public ActionResult Designer() {
      var reportDesignerModel = ReportDesignerExtension.GetModel(new MyReport());
      return View(reportDesignerModel);
    }
}

View code:

@Html.DevExpress().ReportDesigner(settings => {
  settings.Name = "designer";
}).Bind(Model)

#Inheritance

Object
DevExpress.Utils.SerializableSettingsBase
ReportDesignerSettingsBase
ReportDesignerModel
See Also