dashboard-devexpress-dot-dashboardcommon-3dd3ea7b.md
Contains parameters used to establish a connection to an Extract Data Source.
Namespace : DevExpress.DashboardCommon
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
public class ExtractDataSourceConnectionParameters :
ExtractDataSourceConnectionParametersBase
Public Class ExtractDataSourceConnectionParameters
Inherits ExtractDataSourceConnectionParametersBase
The ExtractDataSourceConnectionParameters contains parameters required for connection to the data extract file.
You can pass connection parameters when you handle the ConfigureDataConnection event:
When the ConfigureDataConnection event occurs, the ExtractDataSourceConnectionParameters instance is available as the e.ConnectionParameters property value.
For more information about the data connection parameters, refer to the DataConnectionParametersBase topic.
This code snippet is the ConfigureDataConnection event handler that allows you to specify the extract data source’s file location before the dashboard loads.
View Example: How to set master filter in DashboardViewer
using DevExpress.DashboardCommon;
// ...
dashboardViewer.ConfigureDataConnection += dashboardViewer_ConfigureDataConnection;
// ...
private void dashboardViewer_ConfigureDataConnection(object sender, DashboardConfigureDataConnectionEventArgs e)
{
ExtractDataSourceConnectionParameters parameters = e.ConnectionParameters as ExtractDataSourceConnectionParameters;
if (parameters != null)
parameters.FileName = Path.GetFileName(parameters.FileName);
}
Imports DevExpress.DashboardCommon
' ...
AddHandler dashboardViewer.ConfigureDataConnection, AddressOf dashboardViewer_ConfigureDataConnection
' ...
Private Sub dashboardViewer_ConfigureDataConnection(ByVal sender As Object, ByVal e As DashboardConfigureDataConnectionEventArgs)
Dim parameters As ExtractDataSourceConnectionParameters = TryCast(e.ConnectionParameters, ExtractDataSourceConnectionParameters)
If parameters IsNot Nothing Then
parameters.FileName = Path.GetFileName(parameters.FileName)
End If
End Sub
Object DataConnectionParametersBase ExtractDataSourceConnectionParametersBase ExtractDataSourceConnectionParameters
See Also