This is a migrated thread and some comments may be shown as answers.

Tabbing between controls

1 Answer 58 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 07 Jun 2012, 08:09 PM
The page I'm dealing with has a RadTextBox then a RadEditor following it.  Is it possible, when the Tab key is hit, to jump from the RadTextBox to the RadEditor's body input, skipping over the formatting options (Print, spellcheck, undo, redo, etc...)?  This would allow a user to type into the RadTextBox, hit Tab, and immediately start typing into the RadEditor, instead of needing to tab multiple times, or click.

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Jun 2012, 03:27 AM
Hi Philip,

Try the following javascript to achieve your scenario.

JS:
<script type="text/javascript">
 function OnClientLoad(editor, args)
        {
           var buttonsHolder = $get(editor.get_id() + "Top"); 
           var buttons = buttonsHolder.getElementsByTagName("A"); 
           for (var i=0; i< buttons.length; i++)
           {
              var a = buttons[i];
              a.tabIndex = -1;
              a.tabStop = false;
           
        }
</script>

Thanks,
Princy.
Tags
Editor
Asked by
Philip
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or