Skip to main content

ASPxClientFilterControl.Apply Method

Applies a filter constructed by an end-user.

Declaration

Apply(): void

Remarks

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" 
        UseSubmitBehavior="false">
    <ClientSideEvents Click="function() { filter.Apply(); }" />
</dxe:ASPxButton>

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">
    <Columns>
        <dxe:FilterControlColumn PropertyName="ProductName"  />
        <dxe:FilterControlColumn PropertyName="OrderDate" ColumnType="DateTime"  />
        <dxe:FilterControlColumn PropertyName="UnitPrice"  />
    </Columns>
     <ClientSideEvents applied="function(s, e) { grid.ApplyFilter(e.filterExpression); }"/>
</dxe:ASPxFilterControl>
See Also