Tab

ASPxFilterControlBase.ApplyFilter() Method

Applies a filter constructed by an end-user.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public virtual void ApplyFilter()
Public Overridable Sub ApplyFilter

Remarks

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"
    Text="ASPxButton">
    <ClientSideEvents Click="function(s, e) {
        grid.PerformCallback();
        e.processOnServer = false;
    }" />
</dxe:ASPxButton>

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