Back to Devexpress

DashboardControl.SetMasterFilter(String, Object) Method

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol-dot-setmasterfilter-x28-system-dot-string-system-dot-object-x29.md

latest2.5 KB
Original Source

DashboardControl.SetMasterFilter(String, Object) Method

Selects required elements by their values in the specified master filter item.

Namespace : DevExpress.DashboardWpf

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

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public void SetMasterFilter(
    string dashboardItemName,
    object values
)
vb
Public Sub SetMasterFilter(
    dashboardItemName As String,
    values As Object
)

Parameters

NameTypeDescription
dashboardItemNameString

A String that specifies the component name of the master filter item.

| | values | Object |

Values that are used to select elements in the master filter item.

|

Remarks

Note

The method fires the InvalidOperationException if master filtering is disabled in the specified dashboard item (the MasterFilterMode property is set to None). The exception message is The required action is not currently available for this dashboard item.

The example demonstrates how to synchronize Master Filter and Drill-Down actions between different dashboards:

View Example: How to Synchronize Master Filter and Drill Down Actions Between Dashboards

See Also

SetRange

ClearMasterFilter(String)

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace