1. #1
    Sencha User
    Join Date
    Feb 2013
    Location
    Sweden
    Posts
    13
    Vote Rating
    0
    Intraday is on a distinguished road

      0  

    Default Unanswered: Filter fields?

    Unanswered: Filter fields?


    Hello,
    I have a gridpanel that I want to filter out depending on keywords from the user input in a textfield.
    Can you please show me to the right direction?

    Thanks in advance!

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Vote Rating
    96
    Answers
    113
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      1  

    Default


    one way could be to filter the field in the store on the change event of your textfield:

    Code:
    textField.on('change', function(field, newValue, oldValue) {
      grid.getStore.clearFilter();
      grid.getStore().filter('field1', newValue);
    });
    May be there are better ways to do it but this should work.

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    Sweden
    Posts
    13
    Vote Rating
    0
    Intraday is on a distinguished road

      0  

    Default


    Great, Thanks!

Thread Participants: 1