Skip to main content
All docs
V18.2

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.2.Web.Mvc5.dll

Declaration

public ConfigureDataConnectionWebEventHandler ConfigureDataConnection { get; set; }

Property Value

Type Description
ConfigureDataConnectionWebEventHandler

A ConfigureDataConnectionWebEventHandler delegate method allowing you to implement custom processing.

Remarks

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

Example

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


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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ConfigureDataConnection property.

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.

See Also