Skip to main content
All docs
V24.2

ICustomItemInteractivityProvider.SetMasterFilter(DashboardFlatDataSourceRow) Method

Selects required elements in the specified master filter item.

Namespace: DevExpress.DashboardWin

Assembly: DevExpress.Dashboard.v24.2.Win.dll

Declaration

void SetMasterFilter(
    DashboardFlatDataSourceRow row
)

Parameters

Name Type Description
row DashboardFlatDataSourceRow

Identifies a master filter element.

Remarks

The following code snippet sets a master filter:

using DevExpress.DashboardCommon;
using DevExpress.DashboardWin;
using DevExpress.XtraCharts;
using System.Linq;

namespace TutorialsCustomItems {
    public class FunnelItemControlProvider : CustomControlProviderBase {
        CustomDashboardItem<FunnelItemMetadata> dashboardItem;
        ChartControl chart;
      public FunnelItemControlProvider(CustomDashboardItem<FunnelItemMetadata> dashboardItem){
        // ...
        chart.SelectedItemsChanged += ChartSelectedItemsChanged;
      }
      // ...
      void ChartSelectedItemsChanged(object sender, SelectedItemsChangedEventArgs e){
        if (chart.SelectedItems.Count == 0 && Interactivity.CanClearMasterFilter)
            Interactivity.ClearMasterFilter();
        else if (Interactivity.CanSetMasterFilter)
            Interactivity.SetMasterFilter(chart.SelectedItems.OfType<DashboardFlatDataSourceRow>());
      }
  }
}

Refer to the following tutorial for more information on how to configure master filtering for a custom Funnel item: Create an Interactive Data-Aware Item.

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

See Also