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

RadTextBox

2 Answers 100 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ernandes
Top achievements
Rank 1
Ernandes asked on 10 Jul 2009, 02:22 AM
Hi,

In RadTextBox is possible to auto tab? when you get your maxlength skip to the next field automatically? there examples? thanks.

Best.

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Jul 2009, 08:56 AM
Hi Ernandes,

Try the following:

<telerik:RadTextBox ID="RadTextBox1" runat="server" TabIndex="1" MaxLength="3"
    <ClientEvents OnKeyPress="kp" /> 
</telerik:RadTextBox> 
 
<telerik:RadTextBox ID="RadTextBox2" runat="server" TabIndex="1" /> 
 


function kp(sender, args) 
    if (sender.get_value().length == sender._textBoxElement.maxLength - 1) 
    { 
        setTimeout(function() {$find("<%= RadTextBox2.ClientID %>").focus(); }, 1); 
    } 
 



Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ernandes
Top achievements
Rank 1
answered on 10 Jul 2009, 01:45 PM
Hi,

thank you for example, helped considerably ;)
Tags
Input
Asked by
Ernandes
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Ernandes
Top achievements
Rank 1
Share this question
or