We had trouble before with having both an item renderer and an item
editor for a column (which we need to have that checkbox column), so
instead what I tried was simply having only itemrenderers for the
controls (and updating the data on change of the itemrenderer
controls) This seems to fix the default tab order, but there are still
some issues with the tab order, namely:

1. Tabbing through the grid only traverses visible rows - how can a
user navigate to scrolled-out rows using the keyboard?
2. Sorting the grid doesn't seem to sort the taborder - the rows are
still traversed in the original order. (Strangely, reassigning a
headerRenderer after the sorting sets the correct tab order - I found
this by accident)
3. Tabbing into the grid from an outside control -> looks like it
"remembers" where the grid was last traversed and starts over from
there. Is it possible to change it to always enter the grid from the
first row?
4. I'm not sure of the behavior exactly, as I couldn't replicate it
all the time, but tabbing into the grid after it has been
mouse-scrolled seems to cause it to enter at different rows.



--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Sounds like editable!=true, so the DG's tab handling code isn't running.
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Stephen Roy J. Tang
> Sent: Friday, November 16, 2007 9:15 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Datagrid tab order?
> 
>  
> 
> Hi,
> 
> I'm a bit confused about the tab order in a datagrid. The problem is I
> have a datagrid with 3 columns: 
> column 1 - renderer is a checkbox control. I use onchange of the
> checkbox to update the underlying data
> column 2 - normal text column, editor is a editbox
> column 3 - checkbox, similar to column 1
> 
> Using tab to traverse the datagrid has weird behavior, i.e. first it
> seems to traverse all the column 2 editboxes (top rows first then
> bottom rows); then it traverses the checkboxes in each row (starting
> from top row again); after it has traversed everything, the tab order
> seems random now - it jumps around from editbox to checkbox or whatever.
> 
> Is it because of the way the actual renderer/editor instances are
> created? Is there something I should be specifying to guarantee a
> nice, left-to-right top-to-bottom tab order?
> 
> Thanks,
> 
> Roy
>


Reply via email to