Skip to main content

ASPxFilterControlBase.ApplyFilter() Method

Applies a filter constructed by an end-user.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public virtual void ApplyFilter()


The ASPxFilterControl is a stand-alone control that allows end-users to build filter criteria of any complexity. The current filter expression can be obtained using the ASPxFilterControlBase.FilterExpression property. After the filter expression has been constructed, you can apply it. To do this, call the ApplyFilter method. After the filter expression has been applied, you can obtain it using the ASPxFilterControlBase.AppliedFilterExpression property and apply to a source control.

<dxe:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" OnClick="ASPxButton1_Click"
    <ClientSideEvents Click="function(s, e) {
        e.processOnServer = false;
    }" />

To reset the current filter expression to a previously applied filter expression, use the ASPxFilterControlBase.ResetFilter method. In this instance, the ASPxFilterControlBase.FilterExpression property is set to the ASPxFilterControlBase.AppliedFilterExpression property’s value.

See Also