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

Radtextbox click behaviour

3 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jan Hesselgren
Top achievements
Rank 1
Jan Hesselgren asked on 04 Jun 2008, 12:00 PM

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?

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 06 Jun 2008, 12:10 PM
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.

Greetings,
Georgi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gabriele
Top achievements
Rank 1
answered on 03 Mar 2011, 02:43 PM
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.

Thanks,

-Gabriele
0
Stefan
Telerik team
answered on 07 Mar 2011, 04:13 PM
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,
Stefan
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!
Tags
General Discussions
Asked by
Jan Hesselgren
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Gabriele
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or