Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-16-2011, 03:44 PM   PM User | #1
bon_t
New Coder

 
Join Date: Jul 2010
Posts: 32
Thanks: 1
Thanked 0 Times in 0 Posts
bon_t is an unknown quantity at this point
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
bon_t is offline   Reply With Quote
Old 08-30-2011, 05:46 AM   PM User | #2
Kevin Richards
New Coder

 
Join Date: Aug 2011
Location: New Jersey
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Kevin Richards is an unknown quantity at this point
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
Kevin Richards is offline   Reply With Quote
Old 09-25-2011, 09:35 PM   PM User | #3
dhape
New Coder

 
Join Date: Aug 2011
Posts: 26
Thanks: 2
Thanked 1 Time in 1 Post
dhape is an unknown quantity at this point
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
dhape is offline   Reply With Quote
Reply

Bookmarks

Tags
actionscript 3, advanceddatagrid, enter, flex 4, keyup

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:04 AM.


Advertisement
Log in to turn off these ads.