[FIXED] [#1594] [4.7.0] Clear value in a GridPanel Column Filter

  1. #1

    [FIXED] [#1594] [4.7.0] Clear value in a GridPanel Column Filter

    Hello, I'm trying to clear a filter text when the user disable it, but it's not working
    it is possible to do this?

    <Activate Handler="alert('Hello World');" /> is also not working, maybe i'm using the deactivate and activate listeners in a wrong way

                                <ext:Column runat="server" Text="Usuario" DataIndex="NOMBRE_CONCATENADO" Width="200">
                                    <Filter>
                                        <ext:StringFilter EmptyText ="Ingrese Criterio Filtro" DataIndex="NOMBRE_CONCATENADO" > 
                                            <Listeners>
                                                <Activate  Handler="alert('Hello World');" />
                                                <Deactivate Handler="this.setValue('');" />
                                            </Listeners>
                                        </ext:StringFilter>
                                    </Filter>
                                </ext:Column>
    Last edited by fabricio.murta; Aug 07, 2018 at 7:57 PM.
  2. #2
    Hello @opendat2000!

    Interesting, by the documentation on string filter, there's some inconsistencies.

    First, there's no event at all bound to the component. But then, in the documentation entry above, it says it calls respective events related to the filter.

    In fact this seems to be an old, recurring issue. In the thread below this issue has been discussed, and probably fixed for Ext.NET but, as the code evolved, then the fix was probably no longer applicable to Ext JS code.
    - Filter Deactivate event handler

    But further investigating it looks like this is the intended behavior and there's no activate/deactivate filters at all, and this is confuse.

    What is there that should be taken in consideration is the FilterChange event in the grid's store, not the activate/deactivate ones in the filter.

    While it may be a convenient way to catch the filters, at deeper level, the filter header is implemented just as a shortcut to interact with the grid store's filter, and activation or deactivation of a filter in a given column is a matter of the change implied to the filter (a filter applied or not to the corresponding column's field).

    In short, the Activate and Deactivate events are no longer supported by the component. The GridFilters grid feature was turned into a Plugin somewhere down the road and dropped those events in favor of the grid store's FilterChange event.

    We have logged issue #1594 in order to remove these event bindings from the components, they are not supported by client side.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello @opendat2000!

    We've just removed these "fake" listeners from Ext.NET. It should no longer allow one to build code trying to use the listeners anymore.

    This probably didn't work since version 3, so there's not much point in trying to reimplement it, as there's already an appropriate event to monitor the same aspect.

    Thanks for reporting! The fix will make it to the upcoming Ext.NET 4.7.0 release!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 9
    Last Post: Aug 11, 2015, 12:52 PM
  2. Replies: 3
    Last Post: Nov 18, 2014, 10:48 AM
  3. Replies: 9
    Last Post: Mar 13, 2013, 12:10 AM
  4. Replies: 2
    Last Post: May 01, 2012, 5:57 PM
  5. [CLOSED] Clear Filter Data in GridPanel
    By speedstepmem4 in forum 1.x Premium Help
    Replies: 1
    Last Post: Apr 11, 2011, 1:51 PM

Tags for this Thread

Posting Permissions