:: Forum >>

Pre-selecting the first row ...

I want to be able to pre-select the first row in a grid, as if the user had just clicked on it. This is so that my app can be driven from the keyboard - the user then just uses cursor up and down to select an item. At present you need to resort to the mouse to select an item in the grid first.
DaveM
Monday, August 22, 2005
http://activewidgets.com/javascript.forum.1119.4/how-do-i-execute-clicking.html
Monday, August 22, 2005
And for preselection add this line before "document.write(obj);"

obj.setSelectionIndex(0);
Monday, August 22, 2005
Works a treat once I add a .focus() as well as a .click().

Thanks.
DaveM
Monday, August 22, 2005

This topic is archived.


Back to support forum

Forum search