DataDashboardItem.FilterString Property

Gets or sets the criteria string used to filter data displayed within the current dashboard item.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v18.1.Core.dll

Declaration

public string FilterString { get; set; }
Public Property FilterString As String

Property Value

Type Description
String

A String that specifies the criteria string used to filter data displayed within the current dashboard item.

To learn more about building filter criteria, see Creating Criteria.

Note

You cannot apply filtering by building complex filter criteria in OLAP mode.

Examples

The following code shows how to apply filtering to a dashboard item in code. Note that the DataItem.UniqueId property is specified for Dimension objects to identify these dimensions in a filter string.

ChartDashboardItem chart = new ChartDashboardItem();
Dimension issueTypeDimension = new Dimension("issueTypeID", "IssueType");
Dimension productNameDimension = new Dimension("productNameID", "ProductName");
Measure openedMeasure = new Measure("Opened", SummaryType.Count);

// ...

chart.FilterString = "issueTypeID = 'Critical' And productNameID In ('Web Forms', 'Mobile')";

See Also