dashboard-devexpress-dot-dashboardweb-dot-aspxdashboard-dot-setdatasourcestorage-x28-devexpress-dot-dashboardweb-dot-idatasourcestorage-x29.md
Specifies a data source storage for the Web Dashboard.
Namespace : DevExpress.DashboardWeb
Assembly : DevExpress.Dashboard.v25.2.Web.WebForms.dll
NuGet Package : DevExpress.Web.Dashboard
public void SetDataSourceStorage(
IDataSourceStorage dataSourceStorage
)
Public Sub SetDataSourceStorage(
dataSourceStorage As IDataSourceStorage
)
| Name | Type | Description |
|---|---|---|
| dataSourceStorage | IDataSourceStorage |
An object implementing the IDataSourceStorage interface that is a storage of the dashboard data sources.
|
To learn more, see Register Default Data Sources.
The following code snippets (auto-collected from DevExpress Examples) contain references to the SetDataSourceStorage(IDataSourceStorage) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
// Set the configured data source storage.
ASPxDashboardObjectDS.SetDataSourceStorage(dataSourceStorage);
asp-net-web-forms-dashboard-localization/CS/DashboardLocalizationManualWeb/Default.aspx.cs#L8
protected void Page_Load(object sender, EventArgs e) {
ASPxDashboard1.SetDataSourceStorage(CreateDataSourceStorage());
}
ASPxDashboard1.SetDataSourceStorage(dataSourceStorage);
}
ASPxDashboard1.SetDashboardStorage(new DashboardFileStorage(Server.MapPath("~/App_Data/Dashboards")));
ASPxDashboard1.SetDataSourceStorage(dataSourceStrorage);
ASPxDashboard1.ConfigureDataConnection += ASPxDashboard1_ConfigureDataConnection;
web-forms-dashboard-enable-export-in-data-inspector/CS/WebForm1.aspx.cs#L19
dataSourceStorage.RegisterDataSource("extractDataSource", extractDataSource.SaveToXml());
ASPxDashboard1.SetDataSourceStorage(dataSourceStorage);
}
' Set the configured data source storage.
ASPxDashboardObjectDS.SetDataSourceStorage(dataSourceStorage)
AddHandler ASPxDashboardObjectDS.DataLoading, AddressOf Me.ASPxDashboardObjectDS_DataLoading
ASPxDashboard1.SetDataSourceStorage(dataSourceStorage)
End Sub
ASPxDashboard1.SetDashboardStorage(New DashboardFileStorage(Server.MapPath("~/App_Data/Dashboards")))
ASPxDashboard1.SetDataSourceStorage(dataSourceStrorage)
AddHandler ASPxDashboard1.ConfigureDataConnection, AddressOf Me.ASPxDashboard1_ConfigureDataConnection
web-forms-dashboard-enable-export-in-data-inspector/VB/WebForm1.aspx.vb#L21
dataSourceStorage.RegisterDataSource("extractDataSource", extractDataSource.SaveToXml())
ASPxDashboard1.SetDataSourceStorage(dataSourceStorage)
End Sub
web-forms-dashboard-save-dashboards-title-as-file-name/VB/DXWebApplication2/Default.aspx.vb#L33
dataSourceStorage.RegisterDataSource("excelDataSource", excelDataSource.SaveToXml())
ASPxDashboard1.SetDataSourceStorage(dataSourceStorage)
End Sub
See Also