Skip to main content

ASPxClientFilterControl.Applied Event

Occurs after a new filter expression has been applied.

Declaration

Applied: ASPxClientEvent<ASPxClientFilterAppliedEventHandler<ASPxClientFilterControl>>

Event Data

The Applied event's data class is ASPxClientFilterAppliedEventArgs. The following properties provide information specific to this event:

Property Description
filterExpression Gets the filter expression currently being applied.

Remarks

The ASPxFilterControl enables end-users to manually construct complex filter criteria. After you have created a new or modified an existed filter expression, you need to apply it. To do this, call the client ASPxClientFilterControl.Apply method.

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

This raises the Applied event which enables you to apply the constructed filter expression to a control or data source. The new filter expression is returned by the ASPxClientFilterAppliedEventArgs.filterExpression property.

<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