Results 1 to 3 of 3

Thread: UP down Arrow key on Ext Grid Panel

  1. #1
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    44

    Default UP down Arrow key on Ext Grid Panel

    I have an Ext grid panel in a frame and it moves the row selection up and down when up and arrow button are pressed. But this doesn't work when grid does not have focus and arrow key is pressed in some other frame. I need to somehow manually move the cursor up and down and will appreciate if somebody can let me know what handler is called when arrow buttons are pressed so that I can directly call those handlers or just let me know some other approach to achieve this.

    Thanks.

  2. #2

    Default

    Currently working on this, it seems hard, but I might not be looking at the right spot, if I figure it out I will let you know.

  3. #3

    Default

    This works for me:
    PHP Code:
     var map = new Ext.KeyMap("containerdivname", [
        {
            
    keyExt.EventObject.UP,
            
    fn: function(){ MyGrid.getSelectionModel().selectPrevious(); }
        },
        {
            
    keyExt.EventObject.DOWN,
            
    fn: function(){ MyGrid.getSelectionModel().selectNext();}
        }
    ]); 

Posting Permissions

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