Back to Devexpress

DashboardsModule.AddDashboardData<T>(IObjectSpace, String, String) Method

expressappframework-devexpress-dot-expressapp-dot-dashboards-dot-dashboardsmodule-dot-adddashboarddata-1-x28-devexpress-dot-expressapp-dot-iobjectspace-system-dot-string-system-dot-string-x29.md

latest2.8 KB
Original Source

DashboardsModule.AddDashboardData<T>(IObjectSpace, String, String) Method

Creates a dashboard data object from the specified XML string if there is no dashboard data with the specified title parameter in the database.

Namespace : DevExpress.ExpressApp.Dashboards

Assembly : DevExpress.ExpressApp.Dashboards.v25.2.dll

NuGet Package : DevExpress.ExpressApp.Dashboards

Declaration

csharp
public static T AddDashboardData<T>(
    IObjectSpace objectSpace,
    string title,
    string xml
)
    where T : IDashboardData
vb
Public Shared Function AddDashboardData(Of T As IDashboardData)(
    objectSpace As IObjectSpace,
    title As String,
    xml As String
) As T

Parameters

NameTypeDescription
objectSpaceIObjectSpace

An IObjectSpace object that specifies the Object Space.

| | title | String |

A string specifying the dashboard title.

| | xml | String |

A string specifying the dashboard configuration in XML format.

|

Type Parameters

Name
T

Returns

TypeDescription
T

A dashboard data object.

|

Remarks

To recreate the predefined dashboard, first delete the Dashboard in the DashboardData ListView and then restart the application.

An example of using this method is provided in the Create a Predefined Dashboard and Add it to the Navigation topic.

See Also

AddDashboardDataFromResources<T>(IObjectSpace, String, Assembly, String)

DashboardsModule Class

DashboardsModule Members

DevExpress.ExpressApp.Dashboards Namespace