Back to Devexpress

DashboardControl.ObjectDataSourceLoadingBehavior Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-cddc6af1.md

latest3.1 KB
Original Source

DashboardControl.ObjectDataSourceLoadingBehavior Property

Specifies how to load the object data sources available in the end-user application considering the application security.

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Dashboard.v25.2.Wpf.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public DocumentLoadingBehavior ObjectDataSourceLoadingBehavior { get; set; }
vb
Public Property ObjectDataSourceLoadingBehavior As DocumentLoadingBehavior

Property Value

TypeDescription
DocumentLoadingBehavior

A DocumentLoadingBehavior enumeration member that specifies whether to allow loading object data sources or prompt the user for confirmation.

|

Available values:

NameDescription
Prompt

Ask for an end-user’s permission on every attempt to load an object data source in an application.

| | LoadAsIs |

Allow loading any object data sources.

| | LoadSafely |

Load object data sources in a safe mode (with their data member and data source settings cleared).

|

Remarks

The DashboardControl displays a warning on each attempt to load an object data source when retrieving the dashboard data. You can set the ObjectDataSourceLoadingBehavior option to LoadAsIs to suppress warning dialogs.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ObjectDataSourceLoadingBehavior 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.

wpf-dashboard-how-to-embed-devexpress-control/CS/GanttSample/Window.xaml#L45

xml
<dxdash:DashboardControl DashboardSource="{x:Type local:Dashboard}"
                         ObjectDataSourceLoadingBehavior="LoadAsIs"
                         GridItemStyleSelector="{StaticResource ganttStyleSelector}">

See Also

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace