Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Editors (TextBox, MaskedEdit, SpinEditor, BrowseEditor, ColorBox) > RadTextBox focus issue

Answered RadTextBox focus issue

Feed from this thread
  • Selvamani avatar

    Posted on Nov 11, 2011 (permalink)

    Hi,    
        
            i created an sample application with rad textbox and set autoscroll property to true. i have a list box with some data wheni click the data present in the list  will be added to the textbox . when i keep on adding in this way i am unable to see the focus of the data in the text box .

     i need to scroll down to see the last added data from the list.

    how to set the focus to textbox on the currently added data instead scroll down and see.

    i have attached two images please refer it.

    please provide me a suggestion on this.


    Regards,
    Selva
            
            
    Attached files

    Reply

  • Answer Ivan Petrov Ivan Petrov admin's avatar

    Posted on Nov 15, 2011 (permalink)

    Hi Selvamani,

    Thank you for writing.

    You can execute the following line of code each time you add text to the RadTextBox and it will scroll the control to the last visible row of text:

    this.radTextBox1.SelectionStart = this.radTextBox1.Text.Length;
    this.radTextBox1.ScrollToCaret();

    I would like to remind you that you are not entitled to using our support services. In case you want to receive further support from us, please ask the purchase holder to add you as a license developer to the purchase.
    Greetings,
    Ivan Petrov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Editors (TextBox, MaskedEdit, SpinEditor, BrowseEditor, ColorBox) > RadTextBox focus issue
Related resources for "RadTextBox focus issue"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]