1. #1
    Sencha User harman's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    130
    Answers
    2
    Vote Rating
    3
    harman is on a distinguished road

      0  

    Default Answered: ExtJS 4.0.7 Grid filtering

    Answered: ExtJS 4.0.7 Grid filtering


    HI,

    I am using Extjs 4.0.7 Grid.
    I want to put a filter on a column.
    Can anyone put a sample code for the same as i am not able to find any plugin for that.

    Thanks

  2. examples/ux/grid/FiltersFeature.js

    Scott.

  3. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,873
    Answers
    653
    Vote Rating
    439
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    How do you want to filter the grid?
    edit/Button, column editor at top of each column, menu selection?

    Scott.

  4. #3
    Sencha User luisparada's Avatar
    Join Date
    Nov 2007
    Location
    Venezuela
    Posts
    94
    Answers
    2
    Vote Rating
    2
    luisparada is on a distinguished road

      0  

    Default


    Here is a very basic and small filter, I hope you can use it and learn how to do more complex filters.
    Code:
    listeners:{
                    change:function(el,rec,oldrec){
                        var panel = Ext.getCmp('showTrackingLogs-id');
                        panel.getStore().filter([{
                            property:'descripcion',
                            value:rec
                        }]);
                        if(rec==""){
                            panel.getStore().clearFilter();
                        }
                    }
                }
    ____________________________________
    do not make install, just compile it.!!!
    --------------------------------------------------
    //*************k4m1k4z3************\\

  5. #4
    Sencha User harman's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    130
    Answers
    2
    Vote Rating
    3
    harman is on a distinguished road

      0  

    Default


    Hi Scott,

    I wanted a filter (on string) under the menu items of a specific column header as shown on the sample and demos page of Sencha. Just that i will put a dropdown in place of textfield under submenu of filter.
    The problem is that i indirectly refer the Library of ExtJS rather than having it all in my proj.
    And i am unable to find the 'Ext.ux.grid.FiltersFeature'.

  6. #5
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,873
    Answers
    653
    Vote Rating
    439
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    examples/ux/grid/FiltersFeature.js

    Scott.