Skip to main content
.NET Framework 4.6.2+

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

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.v24.2.dll

#Declaration

public static T AddDashboardData<T>(
    IObjectSpace objectSpace,
    string title,
    string xml
)
    where T : IDashboardData

#Parameters

Name Type Description
objectSpace IObjectSpace

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

Type Description
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