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

Strange Click Behaviour, Box Disables

4 Answers 146 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Philip Ashworth
Top achievements
Rank 1
Philip Ashworth asked on 28 May 2010, 01:02 PM
Hi,

Has anyone else seen this behaviour.

Page loads, richtextbox has the focus and I can directly type into it. If I click off the textbox (onto another control) and then back onto the textbox the cursor disappears, if I double click the typed text it will highlight but if I try to type over it nothing happened's. I have to randomly click around the textbox to get it to display the cursor and edit the text.
It is like the textbox goes into readonly mode on loss of focus but when focused again it doesn't come out of readonly mode?

Thanks Phil.

4 Answers, 1 is accepted

Sort by
0
Philip Ashworth
Top achievements
Rank 1
answered on 28 May 2010, 01:25 PM
Just discovered that this only happened's if the richtextbox is within a ScrollViewer!

No help required now.
0
Mike
Telerik team
answered on 31 May 2010, 08:33 AM
Hi Philip Ashworth,

Currently we have an issue related to focusing RadRichTExtBoix when it is added to ScrollViewer. What happens here is that ScrollViewer handles MouseLeftButtonDown event internally and takes the focus away form the RadRichTextBox control.


You can workaround this behavior by attaching to the MouseLeftButtonDown event of RadRichTextBox in your UserControl and mark it as handled. This way the event will not bubble to the ScrollViewer. Here is a code snippet of how this can be done:

Copy Code
void editor_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
    e.Handled = true;
}

If you have more questions or suggestions, please don't hesitate to contact us.

Greetings,
Mike
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Rich Reuter
Top achievements
Rank 1
answered on 19 Jul 2010, 10:13 PM
I'm still having the same issue as described in the first message in the thread.  I'm using the recently released Q2/2010 version.  I've got the RadRichTextBox in ScrollViewer that in a RadWindow.  I tried the workaround but it didn't work. Is there anything else that can be done?  The scrollable RadWindow is a pretty big part of our interface and I'd have a hard time not having the editor in one of those windows.
Thanks,
Rich
0
Mike
Telerik team
answered on 20 Jul 2010, 01:27 PM
Hi Rich Reuter,

We are very sorry for the inconvenience. We confirm the issue is still present in Q2 release.  Will fix the problem immediately and the fix will be available in the latest internal build expected this Friday. If you open a support ticket we can discuss how you can get this version.

Best wishes,
Mike
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Philip Ashworth
Top achievements
Rank 1
Answers by
Philip Ashworth
Top achievements
Rank 1
Mike
Telerik team
Rich Reuter
Top achievements
Rank 1
Share this question
or