Back to Devexpress

Dashboard.BeginUpdate() Method

dashboard-devexpress-dot-dashboardcommon-dot-dashboard-ef81b7b7.md

latest3.5 KB
Original Source

Dashboard.BeginUpdate() Method

Locks the Dashboard object by preventing updates until the Dashboard.EndUpdate method is called.

Namespace : DevExpress.DashboardCommon

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

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public void BeginUpdate()
vb
Public Sub BeginUpdate

Remarks

Note that the Dashboard Viewers’ API should not be used between the BeginUpdate /Dashboard.EndUpdate method calls.

The following code snippets (auto-collected from DevExpress Examples) contain references to the BeginUpdate() method.

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.

winforms-dashboard-designer-merge-dashboards-to-tabs/CS/DesignerForm.cs#L31

csharp
if(openFileDialog.ShowDialog() == DialogResult.OK) {
    dashboardDesigner.Dashboard.BeginUpdate();
    try {

winforms-dashboard-create-layout-from-scratch/CS/Dashboard_LayoutCustomization/Form1.cs#L23

csharp
dashboard.LoadFromXml(@"Data\LayoutUnordered.xml");
dashboard.BeginUpdate();
// Switch off the DateFilter item's AutoHeight arrangement mode so that the DateFilter layout does not ignore its layout weight.

winforms-dashboard-designer-merge-dashboards-to-tabs/VB/DesignerForm.vb#L32

vb
If openFileDialog.ShowDialog() = DialogResult.OK Then
    dashboardDesigner.Dashboard.BeginUpdate()
    Try

winforms-dashboard-create-layout-from-scratch/VB/Dashboard_LayoutCustomization/Form1.vb#L21

vb
dashboard.LoadFromXml("Data\LayoutUnordered.xml")
dashboard.BeginUpdate()
' Switch off the DateFilter item's AutoHeight arrangement mode so that the DateFilter layout does not ignore its layout weight.

See Also

EndUpdate()

Dashboard Class

Dashboard Members

DevExpress.DashboardCommon Namespace