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

Tabbing cycle in a rad pane

1 Answer 28 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
ankool
Top achievements
Rank 1
ankool asked on 07 Aug 2008, 02:05 PM
I have two panes, one with rad tree and other with multiple textboxes. Now i put focus on first textbox on load and then keep tabbing to next textboxes. But after last textbox the tabbing takes focus to IE address bar. But i want to cycle tab back to first text box.

Please help me to fix this by adding some property to rad pane.

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 11 Aug 2008, 08:31 AM
Hello ankool,
You are correct - you cannot achieve this result with the currect implementation of the control, but you can easily implement the desired behavior by yourself.

For example:
<body>  
    <script type="text/javascript">  
    function MoveFocusToFirstTextBox(e)  
    {  
        var keynum;  
        if(window.event) // IE  
        {  
            keynum = e.keyCode;  
        }  
        else if(e.which) // Netscape/Firefox/Opera  
        {  
            keynum = e.which;  
        }  
          
        if(keynum == 9)  
        {  
            var textBox = $get('<%= TextBox1.ClientID %>');  
            textBox.focus();  
            return false;  
        }  
          
        return true;  
    }  
    </script>  
 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" />  
        <telerik:RadSplitter ID="RadSplitter1" runat="server">  
            <telerik:RadPane ID="RadPane1" runat="server">  
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>  
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>  
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>  
                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>  
                <asp:TextBox ID="TextBox5" runat="server" onkeydown="return MoveFocusToFirstTextBox(event);"></asp:TextBox>  
            </telerik:RadPane>  
            <telerik:RadPane ID="RadPane2" runat="server"></telerik:RadPane>  
        </telerik:RadSplitter>  
    </form>      
</body> 


Kind regards,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Splitter
Asked by
ankool
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or