Results 1 to 3 of 3

Thread: Filtered GridPanel looses filter

  1. #1
    Ext User
    Join Date
    Jun 2010
    Location
    Norway
    Posts
    16

    Default Filtered GridPanel looses filter

    Hi,

    I have a panel containing a TextField and a GridPanel. When the user enters text in the TextField, the contents of the GridPanel is filtered accordingly. The filter works in such a way that every time the user enters text, I send a GET request for a JSON file with the entered parameters, and the store for the GridPanel is loaded accordingly. The keystrokes are captured using keyup in the TextField. This works perfectly if the user is a slow typist. However, if the user enters text quickly, keyup doesn't capture all the keypresses. The result is that the user gets a correctly filtered list and then after a small delay (perhaps a half second), the Grid "pops" back and is filled with the complete list. This last action is not initiated by a request so it seems the grid falls back to its initial (default?) state. I have not been able to set any breakpoints in Firebug to intervene and capture this.
    Does anyone have any ideas what might be happening here?

  2. #2
    Sencha User laurentParis's Avatar
    Join Date
    Aug 2010
    Location
    paris
    Posts
    246

    Default

    you sayed that "The keystrokes are captured using keyup in the TextField", add same capture on blur event !

  3. #3
    Ext User
    Join Date
    Jun 2010
    Location
    Norway
    Posts
    16

    Default

    Thank you for the tip laurentParis! I (sort of) figured out the problem and made a workaround. It turned out that when I typed fast both my if and else statement got executed. My if statement said to filter and my else statement said to remove the filter and thus I first got the correct result and the after a small delay the filter was removed again.

    Cheers,
    Hvard

Similar Threads

  1. Filtered Tree - Where are filtered items held?
    By bboyle18 in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 26 Aug 2009, 6:31 AM
  2. Replies: 0
    Last Post: 10 Apr 2009, 1:47 AM
  3. GridPanel filter by combobox
    By hamdy in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Apr 2009, 12:55 AM
  4. How to get the value of filter in a gridpanel.
    By sunz2009 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 2 Feb 2009, 7:57 AM
  5. ComboBox from filtered store not filtered!
    By jezmck in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 2 Apr 2008, 5:42 AM

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
  •