Note: This example applies to Community Technology Preview (or alpha) version of the Web Dashboard Designer introduced in version 15.2.9. Starting from v2016 vol 1, the dashboard storage architecture is changed. To learn how achieve this goal in newer versions, refer to the ASPxDashboardDesigner - How to save dashboards to a data base example.
This example shows how to create a custom dashboard storage that allows storing dashboards in a data base.
Custom dashboard storage should implement the IDashboardStorage interface, that contains the following public methods:
string CreateNewDashboard() - creates a new dashboard and saves it to a storage. Returns an ID of the created dashboard.
XDocument GetDashboard(string id) - returns a dashboard by its id in the XDocument format that describes an object model of the dashboard.
IEnumerable<string> GetDashboardIDs() - returns a list of IDs of dashboards available in the data storage .
void UpdateDashboard(string id, XDocument document) - updates the dashboard by its id with new settings.
Added By: David Ösztreicher at: 5/26/2016 10:15:07 AM I'm trying to apply this to the recent 16.1.2 release but it seems that the IDashboardStorage signatures have changed.
Can you provide a link to updated documentation or code examples?
Added By: John (DevExpress Support) at: 5/27/2016 4:29:46 AM Hi David,
I have created a separate ticket for your question: ASPxDashboardDesigner - How to save dashboards to a data base in 16.1 Let's continue our discussion there.
This example shows how to create a custom dashboard storage that allows storing dashboards in a data base.
Custom dashboard storage should implement the IDashboardStorage interface, that contains the following public methods:
string CreateNewDashboard() - creates a new dashboard and saves it to a storage. Returns an ID of the created dashboard.
XDocument GetDashboard(string id) - returns a dashboard by its id in the XDocument format that describes an object model of the dashboard.
IEnumerable<string> GetDashboardIDs() - returns a list of IDs of dashboards available in the data storage .
void UpdateDashboard(string id, XDocument document) - updates the dashboard by its id with new settings.
Question Comments
Added By: David Ösztreicher at: 5/26/2016 10:15:07 AM I'm trying to apply this to the recent 16.1.2 release but it seems that the IDashboardStorage signatures have changed.
Can you provide a link to updated documentation or code examples?
Added By: John (DevExpress Support) at: 5/27/2016 4:29:46 AM Hi David,
I have created a separate ticket for your question: ASPxDashboardDesigner - How to save dashboards to a data base in 16.1 Let's continue our discussion there.