Skip to main content
A newer version of this page is available.

WebPrefilter.Criteria Property

Gets or sets the Prefilter‘s expression.

Namespace: DevExpress.Web.ASPxPivotGrid.Data

Assembly: DevExpress.Web.ASPxPivotGrid.v18.2.dll

Declaration

[DefaultValue(null)]
public CriteriaOperator Criteria { get; set; }

Property Value

Type Default Description
CriteriaOperator *null*

A CriteriaOperator descendant that represents the Prefilter‘s expression.

Remarks

Use the Criteria property to obtain the Prefilter‘s current expression. You can also use this property to specify the filter expression in code.


protected void Page_Load(object sender, EventArgs e) {
    if(!IsPostBack && !IsCallback)
        ASPxPivotGrid1.Prefilter.Criteria =
              CriteriaOperator.Parse("fieldOrderYear = 1995 AND fieldOrderQuarter between (2, 4)");
}

Note

The Prefilter is not supported in OLAP mode.

See Also