[CLOSED] Intercept filter change on GridFilters

  1. #1

    [CLOSED] Intercept filter change on GridFilters



    Hi,

    I'm using the following GridFilters plugin:

    <Plugins>
         <ext:GridFilters
                ID="MyGridFilters" 
                runat="server" 
                Local="false"
                ShowMenu="true" 
                AutoReload="false">
                <Filters>
                      <ext:NumericFilter DataIndex="CustomerId" />
                      <ext:StringFilter DataIndex="CustomerName" />
                      <ext:StringFilter DataIndex="ContactName" />
                </Filters>
         </ext:GridFilters>
    </Plugins>

    I'd like to apply the filter when the user press the Enter key on the filter field of a grid column.
    How can I accomplish this?

    Thanks,
    Stefano

  2. #2

    RE: [CLOSED] Intercept filter change on GridFilters

    Hi,

    It is not supported by that plugin
    Unfortunately it is required completly rewrite menu building in the gridfilters plugin
    At this moment gridfilters check with some interval that filtering conditions are changed.


    You can set AutoReload=false for the GrdiFilters and raise filtering manually (for example, on button click)
    GridPanel1.getFilterPlugin().reload();
  3. #3

    RE: [CLOSED] Intercept filter change on GridFilters

    Ok.

    Is it possible to disable and re-enable the filter menu on grid columns by code?. I'd like to realize the following schema:

    - User set the filter(s) on grid column(s)
    - User press the "Apply Filter" button. After key press the filter menu on all grid columns are disabled and filters applied to store
    - To reset filter user press the "Cancel Filter" button. After key press the filter are canceled, store is reloaded and filter menu are re-enabled

    Thanks,
    Stefano
  4. #4

    RE: [CLOSED] Intercept filter change on GridFilters

    Hi,

    1. Disabling Filter menu for all columns
    GridPanel1.getFilterPlugin().filters.each(function(f){f.disabled = true;})

    2. Enabling Filter menu for all columns
    GridPanel1.getFilterPlugin().filters.each(function(f){f.disabled = false;})

    3. Clear filters
    GridPanel1.getFilterPlugin().clearFilters()
  5. #5

    RE: [CLOSED] Intercept filter change on GridFilters

    It's perfect.

    Thanks,
    Stefano

Similar Threads

  1. Replies: 2
    Last Post: Mar 01, 2012, 5:49 PM
  2. [CLOSED] How to change Row Editor filter?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 30, 2011, 12:23 PM
  3. [FIXED] [V0.8.0] GridFilters filter box
    By methode in forum Bugs
    Replies: 3
    Last Post: Mar 02, 2009, 9:20 AM
  4. [CLOSED] Intercept column filter event
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 09, 2009, 2:08 PM
  5. [CLOSED] AjaxEvent add filter to GridFilters plugin
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 09, 2009, 12:14 PM

Posting Permissions