Radtextbox click behaviour

4 posts, 1 answers
  1. Jan Hesselgren
    Jan Hesselgren avatar
    14 posts
    Member since:
    May 2008

    Posted 04 Jun 2008 Link to this post

    Hello, I'm sorry if this already has been discussed or is described in the documentation, but I couldn't find anything.

    If a Radtextbox conatins a string longer than can be displayed and I click it, the marker wont appear where I click, it appears in the last part of the string.

    How can I make the marker appear where I click?


  2. Answer
    Georgi avatar
    212 posts

    Posted 06 Jun 2008 Link to this post

    Hi Jan Hesselgren,

    Unfortunately, this is a known issue, which will be fixed in the next version of RadControls (Q2 2008). Meanwhile, the only way to workaround this is to set the necessary property of the internal textbox control by using reflection.

    You could add the code below in the constructor of the form, where the RadTextBox is:

        object textbox = radTextBox1.TextBoxElement.TextBoxItem.HostedControl;
        TypeDescriptor.GetProperties(textbox)["SelectOnFocus"].SetValue(textbox, false);

    If you have any additional questions, please don't hesitate to write us again.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Gabriele
    Gabriele avatar
    14 posts
    Member since:
    Oct 2010

    Posted 03 Mar 2011 Link to this post

    I am using version 1326 and I have this issue, when I click in the textbox the cursor stais where it was, does not change to the position I click.


  4. Stefan
    Stefan avatar
    2908 posts

    Posted 07 Mar 2011 Link to this post

    Hello Gabriele,

    Thank you for writing.

    I have tested the described scenario with version 1326 and on my end it works as expected - the cursor is placed wherever you click. Please refer to the attached video.

    Should you continue experiencing this issue, please provide me with details on how can I reproduce it, so I can investigate your case and provide you with adequate support.

    All the best,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top