Results 1 to 2 of 2

Thread: current event is in fact previous event !

  1. #1

    Default current event is in fact previous event !

    Hello,

    I have a listener on keypress that has a weird behavior.

    When there is a keypress event, element is filled with the previous value,

    so I have the current filter when I'm pressing the next key !
    And at the first key press, searched_value is null.

    How can I fixed this?

    I'm working with ext 3.3

    Tks,

    PHP Code:
    listeners: {
                    
    keypress: {
                        
    fn: function(elemevent){
                        
                            
    gdm assignment_panel.getColumnModel();
                            
    colums getAssignementColumns();
                            
    searched_value elem.getValue(); 

                            
    alert(searched_value);

                            var 
    hide_columns = function(){  
                                
                                for(
    col in colums){
                                  
                                    
    header_str colums[col]['header'];
                                    
                                    if(!
    colums[col]['fixed'])
                                        
    gdm.setHidden(col,(header_str != undefined && header_str.search(searched_value) == -1));
                                       
                                }
                                
                            };
                            
    hide_columns.defer(100);
                            
                            
    assignment_panel.view.refresh();
                        }
                    }
                } 

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Use the keyup event.

Similar Threads

  1. Replies: 3
    Last Post: 8 Jan 2014, 12:26 PM
  2. mouseover event is fired on previous row after moving to different row.
    By imnilesh in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 27 Jul 2009, 4:12 AM
  3. Replies: 0
    Last Post: 22 Feb 2008, 1:12 PM

Posting Permissions

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