Select Text Problem

4 posts, 1 answers
  1. Chen
    Chen avatar
    12 posts
    Member since:
    Jul 2010

    Posted 29 Oct 2010 Link to this post

    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
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 02 Nov 2010 Link to this post

    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
  3. Chen
    Chen avatar
    12 posts
    Member since:
    Jul 2010

    Posted 03 Nov 2010 Link to this post

    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
  4. Answer
    Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 03 Nov 2010 Link to this post

    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
Back to Top