A newer version of this page is available.
Switch to the current version.
WebPrefilter.Criteria Property
Gets or sets the Prefilter's expression.
Namespace: DevExpress.Web.ASPxPivotGrid.Data
Assembly: DevExpress.Web.ASPxPivotGrid.v19.2.dll
Declaration
[DefaultValue(null)]
public CriteriaOperator Criteria { get; set; }
<DefaultValue(Nothing)>
Public Property Criteria As CriteriaOperator
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
Feedback