DashboardSourceModel.ConfigureDataConnection Property

Allows you to customize connection settings before the DashboardViewer connects to a data store (database, OLAP cube, etc.).

Namespace: DevExpress.DashboardWeb.Mvc

Assembly: DevExpress.Dashboard.v18.1.Web.Mvc.dll

Declaration

public ConfigureDataConnectionWebEventHandler ConfigureDataConnection { get; set; }
Public Property ConfigureDataConnection As ConfigureDataConnectionWebEventHandler

Property Value

Type Description
ConfigureDataConnectionWebEventHandler

A ConfigureDataConnectionWebEventHandler delegate method allowing you to implement custom processing.

Implement a ConfigureDataConnectionWebEventHandler delegate method and assign it to the ConfigureDataConnection property. For more implementation details, refer to the ConfigureDataConnectionWebEventHandler delegate description.

Examples

The following example demonstrates how to load a dashboard to an MVC Dashboard Viewer at runtime.

@using(Html.BeginForm()) {
    @Html.Action("DashboardViewerPartial")
}