1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
    amol.sonawane is on a distinguished road

      0  

    Default Grid filters

    Grid filters


    Hi,
    I am using Ext.grid.EditorGridPanel(EXTJS 3.4) I want to filter the data/record in the grid.
    Store of grid having events like add, update, remove, load, datachanged etc. are attached for the calculation of the row data like price, discount… etc.

    I used Ext.ux.grid.GridFilters (local filter) to apply filters in the grid but it applies filter on the store and store fires above events. So after filter it show the Calculation data depends on the filtered data its true but I want Calculation Data on all records of the grid and not on the filter data.
    So I want to hide row after filter like we set display property of row to ‘none’ like below example
    grid.getView().getRow(rowIndex).style.display = 'none';
    Is there any plug-in for this or another way to use the Ext.ux.grid.GridFilters so I can work around this ?
    Suggestions are welcome, Thanks in advance.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    7,185
    Vote Rating
    194
    scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold

      0  

    Default


    Moved to help .. Plugins forum is for release notifications.

    Scott.

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
    amol.sonawane is on a distinguished road

      0  

    Default


    Thanks Scott

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Posts
    61
    Vote Rating
    0
    jorgeluislay is an unknown quantity at this point

      0  

    Default


    what about using in tbar a textfield.

    This textfield has a listener which filter "on" the store by the method filterBy and gives you the filtered records on the dom.

    Does this work ?
    Or this ? -> http://www.sk-typo3.de/index.php?id=345

    How to apply filter methods on the grid:
    http://www.sencha.com/learn/grid-faq/#Filtering
    http://aboutfrontend.com/extjs/extjs-grid-filter/

    Have fun