Tabbing between controls

2 posts, 0 answers
  1. Philip
    Philip avatar
    5 posts
    Member since:
    Jun 2012

    Posted 07 Jun 2012 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 07 Jun 2012 Link to this post

    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.
Back to Top