1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    18
    Vote Rating
    0
    napiform is on a distinguished road

      0  

    Question Grid: Show only certain entries WITHOUT emptying store

    Grid: Show only certain entries WITHOUT emptying store


    Hello all -

    I have an Ext.grid.GridPanel with several columns, one of which is called "fruit". I want to "filter" the grid to allow viewing of one fruit at a time.

    Example: User clicks "apple" button ==> grid shows only records with "fruit"="apple".

    The key here is that I DO NOT want to empty my datastore. I want the user to subsequently click "pear" and have the grid show only those records with "fruit"="pear".

    Does anyone know how to do this? I'm in Ext 3.3.1.

    Thanks very much for your time.

  2. #2
    Sencha User darthwes's Avatar
    Join Date
    Mar 2010
    Posts
    633
    Vote Rating
    -13
    darthwes can only hope to improve

      0  

    Default


    Store.filter(property, value, anyMatch, caseSensitive, exactMatch)

    Store.clearFilter()
    Wes

Thread Participants: 1

Tags for this Thread