Skip to main content

ASPxClientFilterControl.Apply Method

Applies a filter constructed by an end-user.


Apply(): void


The ASPxFilterControl allows end-users to build filter criteria of any complexity. After the filter expression has been constructed, you need to apply it. To do this, call the Apply method.

<dxe:ASPxButton runat="server" ID="btnApply" Text="Apply" AutoPostBack="false" 
    <ClientSideEvents Click="function() { filter.Apply(); }" />

This raises the ASPxClientFilterControl.Applied event, which enables you to apply the filter expression to a control or data source.

<dxe:ASPxFilterControl ID="filter" runat="server" ClientInstanceName="filter">
        <dxe:FilterControlColumn PropertyName="ProductName"  />
        <dxe:FilterControlColumn PropertyName="OrderDate" ColumnType="DateTime"  />
        <dxe:FilterControlColumn PropertyName="UnitPrice"  />
     <ClientSideEvents applied="function(s, e) { grid.ApplyFilter(e.filterExpression); }"/>
See Also