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

[Solved] Select Text Problem

3 Answers 182 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chen
Top achievements
Rank 1
Chen asked on 29 Oct 2010, 09:05 AM
The problem is that. I am selecting text.
1.I press left mouse button down.
2.I move the mouse outside of the RadRichTextBox.
3.And I let the left mouse button up out of the  RadRichTextBox.
And I can't select the text. So, The problem is that if I let the left button up out of the RadRichTextBox I can't select the text.

Thanks.
Guiliang

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 02 Nov 2010, 01:03 PM
Hello Chen,

When the user releases the left mouse button outside the Silverlight application, no mouse up event is fired and therefore the selection doesn't end. The user is then required to press and release the left mouse button to be able to select again. This is a known behavior and is due to the way Silverlight handles user input outside the application. As of Q3, this behavior has been worked around and the selection works correctly in your scenario. You can check how this works in the Q3 beta example: http://demos.telerik.com/silverlight/beta/#RichTextBox/MSWord

Sincerely yours,
Iva
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
Chen
Top achievements
Rank 1
answered on 03 Nov 2010, 05:53 AM
Hello Iva,

Thanks for your answer. The control int the demo is as follow.
<telerik:RadRichTextBox Grid.Row="1" DocumentLayoutModeChanged="editor_DocumentLayoutModeChanged"  x:Name="editor"
                                      Margin="24 24 0 0" AllowDrop="True"
                                      Drop="editor_Drop"
                                      IsSelectionMiniToolBarEnabled="True">
</telerik:RadRichTextBox>
The attribute named IsSelectionMiniToolBarEnabled is not in my RadRichTextBox .
My RadRichTextBox  is as follow.
xmlns:telerikEditor="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Documents"
<telerikEditor:RadRichTextBox Grid.Row="1" x:Name="editor" Margin="0"    Grid.ColumnSpan="2"/>

Is it a new RadRichTextBox different from my RadRichTextBox ? Or can you tell how to solve the problem in my RadRichTextBox?

Thanks.
Chen
0
Accepted
Iva Toteva
Telerik team
answered on 03 Nov 2010, 01:01 PM
Hello Chen,

IsSelectionMiniToolBarEnabled is a property we introduced in Q3 2010 Beta. If it is not visible, you have probably referenced an older version of the control. That would also explain your issues with the selection, too.
Please, make sure that you have the following references in your Silverlight application and that they point out to the folder which contains the Q3 Beta DLLs:

  • Telerik.Windows.Documents
  • Telerik.Windows.Controls.RichTextBoxUI

All the best,
Iva
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
Chen
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Chen
Top achievements
Rank 1
Share this question
or