[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
 [Expand]Getting Started
 [Expand]Basic Concepts and Terminology
 [Expand]Common Features
 [Collapse]Creating the Designer and Viewer Applications
  [Expand]WinForms Designer
  [Expand]WinForms Viewer
  [Collapse]Web Dashboard
    Web Dashboard Technical Overview
    Supported Browsers
    Required Client Libraries
   [Collapse]ASP.NET Web Forms Dashboard Control
     Server-Side API Overview
     Client-Side API Overview
     Add the ASPxDashboard Control
     Prepare a Dashboard Storage
     Register Default Data Sources
     Register Default Data Connections
     Designer and Viewer Modes
     Load a Dashboard
     Appearance Customization
     Manage Exporting Capabilities
     Manage Dashboard State
     Manage Interactivity Capabilities
     Manage Dashboard Parameters
     Customize Dashboard Colors
     Access to Underlying Widgets
     Obtain Underlying and Displayed Data
   [Expand]ASP.NET MVC Dashboard Extension
   [Expand]ASP.NET Core Dashboard Control
   [Expand]HTML JavaScript Dashboard Control
    Mobile Layout
   [Expand]Error Logging
    Security Considerations
    Microsoft Azure Specifics
   [Expand]UI Elements
  [Expand]WPF Viewer
  [Expand]Web Viewer
 [Expand]Creating Dashboards
 [Expand]Visual Studio Integration
  End-User Documentation
 [Expand]Redistribution and Deployment
  Video Tutorials
 [Expand]Member Tables
 [Expand]API Reference
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Register Default Data Sources

This document describes the capability to provide a Web Dashboard with a set of default Data Sources, which will be available for end-users.

To achieve this goal, create the required data sources at runtime. You can use the following data source types.

After you create the required data sources, register them in a storage of data sources using the ASPxDashboard.SetDataSourceStorage or DashboardConfigurator.SetDataSourceStorage method (the selected method depends on the used server-side API).

Note that you can use a predefined implementation of the in-memory storage (DataSourceInMemoryStorage) or you can implement the IDataSourceStorage interface to provide custom data source storage.

The following code snippet shows how to create the in-memory storage of data sources for the Web Designer.


The Web Dashboard saves user credentials used by data sources to the dashboard XML definition. Use the boolean DashboardConfigurator.PassCredentials property to specify whether to pass this information to the client side (web browser). Set this property to false and provide connection parameters in one of the following ways to avoid any security issues:

Expanded See Also

Is this topic helpful?​​​​​​​