Back to Devexpress

ReportDesignerModel Class

xtrareports-devexpress-dot-xtrareports-dot-web-dot-reportdesigner-9675d74b.md

latest6.4 KB
Original Source

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.v25.2.Web.dll

NuGet Package : DevExpress.Web.Reporting.Common

Declaration

csharp
public class ReportDesignerModel :
    ReportDesignerSettingsBase
vb
Public Class ReportDesignerModel
    Inherits ReportDesignerSettingsBase

The following members return ReportDesignerModel objects:

Show 12 links

LibraryRelated API Members
.NET Reporting ToolsIReportDesignerClientSideModelGenerator.GetModel(String, IDictionary<String, Object>, String, String, String)
IReportDesignerClientSideModelGenerator.GetModel(XtraReport, IDictionary<String, Object>, String, String, String)
IReportDesignerModelBuilder.BuildModel()
ReportDesignerClientSideModelGenerator.GetModel(String, IDictionary<String, Object>, String, String, String)
ReportDesignerClientSideModelGenerator.GetModel(XtraReport, IDictionary<String, Object>, String, String, String)
ASP.NET MVC ExtensionsReportDesignerExtension.GetModel(XtraReport, IDictionary<String, Object>, IDictionary<String, String>, IEnumerable<ClientControlsMenuItem>)
ReportDesignerExtension.GetModel(XtraReport, IDictionary<String, Object>, IEnumerable<ClientControlsMenuItem>)
ReportDesignerExtension.GetModel(XtraReport, IDictionary<String, Object>)
ReportDesignerExtension.GetModel(XtraReport, IDictionary<String, String>, IEnumerable<ClientControlsMenuItem>)
ReportDesignerExtension.GetModel(XtraReport, IDictionary<String, String>)
ReportDesignerExtension.GetModel(XtraReport, IEnumerable<ClientControlsMenuItem>)
ReportDesignerExtension.GetModel(XtraReport)

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:

csharp
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);
    }
}
vb
Imports DevExpress.Web.Mvc
Imports DevExpress.XtraReports.Native
Imports DevExpress.XtraReports.UI
'... 

Public Class DesignerController
    Inherits Controller
    '... 
    Public Function Designer() As ActionResult
        Dim reportDesignerModel = ReportDesignerExtension.GetModel(New MyReport())
        Return View(reportDesignerModel)
    End Function
End Class

View code:

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

Inheritance

Object DevExpress.Utils.SerializableSettingsBase ReportDesignerSettingsBase ReportDesignerModel

See Also

ReportDesignerModel Members

GetModel

Bind

DevExpress.XtraReports.Web.ReportDesigner Namespace