Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2010
    Posts
    32
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Enter key not captured when pressed in last row of AdvancedDataGrid

    Hi All,

    I'm using an AdvancedDataGrid component in Flex 4, ActionScript 3.

    I set the keyUp attribute of the grid to the following inlined method:

    Code:
    protected function adgGrid_keyHandler( event:KeyboardEvent ):void {
        // If user presses Enter (13) or Tab (9).
        if ( event.charCode == 13 || event.charCode == 9 ) {
            accessRowHandler();
        }
    }
    I put a breakpoint inside this method. When I'm in Edit mode in any cell on the last row of the grid, and I press Enter, the keyUp event is not captured (ie. the code does not stop at the breakpoint). This also happens when I'm in Edit mode in the last cell in the last row, and I press Tab.

    Is this a known bug? What's a logical/adequate workaround for it?
    Thanks!
    Bonnie

  • #2
    New Coder
    Join Date
    Aug 2011
    Location
    New Jersey
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I'm not sure I know the solution to this but I'm sure one of the many bright minds around this forum will be able to help you

  • #3
    New Coder
    Join Date
    Aug 2011
    Posts
    26
    Thanks
    2
    Thanked 1 Time in 1 Post
    Create a custom component that extends the TextInput.
    Add a new variable to UndoTextInput
    Add an event listener on the focusIn event.
    Add an event on the focusOut event.
    Add an event listener on the keyDown event.
    “Computers are useless. They can only give you answers.”
    (Pablo Picasso) Where To Find Coupons and Video Testimonials


  •  

    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
    •