Back to Devexpress

XafApplication.CreateDashboardView(IObjectSpace, String, Boolean) Method

expressappframework-devexpress-dot-expressapp-dot-xafapplication-dot-createdashboardview-x28-devexpress-dot-expressapp-dot-iobjectspace-system-dot-string-system-dot-boolean-x29.md

latest3.3 KB
Original Source

XafApplication.CreateDashboardView(IObjectSpace, String, Boolean) Method

Creates a Dashboard View using information from the Application Model‘s Views | DashboardView node specified by the dashboardViewID parameter.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public DashboardView CreateDashboardView(
    IObjectSpace objectSpace,
    string dashboardViewId,
    bool isRoot
)
vb
Public Function CreateDashboardView(
    objectSpace As IObjectSpace,
    dashboardViewId As String,
    isRoot As Boolean
) As DashboardView

Parameters

NameTypeDescription
objectSpaceIObjectSpace

An IObjectSpace object representing the Object Space which is used to work with the database. This object is assigned to the View.ObjectSpace property.

| | dashboardViewId | String |

A string that represents an identifier of the Application Model node that serves as an information source for creating a new Dashboard View.

| | isRoot | Boolean |

true , if the created Dashboard View is independent and owns the Object Space passed using the objectSpace parameter; false , if the created Detail View is nested to another root View that owns the Object Space. This value is assigned to the View.IsRoot property.

|

Returns

TypeDescription
DashboardView

The created Dashboard View.

|

Remarks

Use this method to create a Dashboard View and initialize its properties by the values passed as parameters.

Note

Do not use another View’s Object Space for the creation of a new root View in it. Instead, create a new Object Space via the XafApplication.CreateObjectSpace method for the new root View.

See Also

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace