RadTextBox

3 posts, 0 answers
  1. Ernandes
    Ernandes avatar
    16 posts
    Member since:
    Jul 2008

    Posted 09 Jul 2009 Link to this post

    Hi,

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

    Best.
  2. Dimo
    Admin
    Dimo avatar
    8456 posts

    Posted 10 Jul 2009 Link to this post

    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.
  3. Ernandes
    Ernandes avatar
    16 posts
    Member since:
    Jul 2008

    Posted 10 Jul 2009 Link to this post

    Hi,

    thank you for example, helped considerably ;)
Back to Top