3.2.0

Tabindex working?

I have several grids on my page. Some grid cells use aw.ui.combo or aw.ui.checkbox as templates. I use default window tab function and didn't make any event hundler for tab key.

When I push tab key, the focus moves from tamplate to tamplate but won't move on grid cells without tamplates. I can use mouse-click to move focus onto a grid cell, but when I push tab key, the focus still move between template controls instead of grid cells. I can only use arrow key to move focus between cells. How can I set Tabindex for each cells and other controls to nevagate my selection?

I searched forum here, and found no issues in recent years. I am using 2.5.2 full version. Is there anyway I can set Tabindex for grid cells?

Thanks
mrhsh
August 19,
The AW.UI... classes are designed to work as standalone controls and not as cell templates. Instead you should use AW.Templates... classes.

The standard tab key behavior is to jump to the next control in the tab index chain. If you want to use tab key to jump between grid cells you can do it with a custom keyboard event handlers -

http://www.activewidgets.com/javascript.forum.22607.1/grid-tabbing-to-next-cell.html
Alex (ActiveWidgets)
August 19,
Thanks for your reply! AW.UI.Combo is much easier to use than AW.Template.Combo in my application. I may consider to change them later.

I want to try the code in your link. I have about 10 grids in my pages. Is there any way to call setController in short form, like:

var TabAction={onKeyTab: function(event){ ...}...};
obj1.setController("myTabKeys", TabAction);
obj2.setController("myTabKeys", TabAction);
......
obj10.setController("myTabKeys", TabAction);

Also, in this case, should I use different names to replace "myTabKeys"?

Thanks,
mrhsh
August 19,
Yes, you can use the same controller object for all controls, like in your example. Controller object is just a collection of the related event handlers, which you can assign or replace in one operation.
Alex (ActiveWidgets)
August 20,

This topic is archived.

See also:


Back to support forum