Results 1 to 2 of 2

Thread: Grid: Show only certain entries WITHOUT emptying store

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    18
    Vote Rating
    0
      0  

    Question 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
    -10
      0  

    Default

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

    Store.clearFilter()
    Wes

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •