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.v20.2.Core.dll

Declaration

[DefaultValue(null)]
public string FilterString { get; set; }
<DefaultValue(Nothing)>
Public Property FilterString As String

Property Value

Type Default Description
String

null

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

Remarks

Refer to the following help topic for more information about building filter criteria: Expression Constants, Operators, and Functions

NOTE

You cannot build complex criteria to filter data 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