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

SelectionMiniToolbar not allowing font changes

1 Answer 57 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 23 Apr 2013, 07:18 PM
I've been using the RadRichTextBox on my Silverlight 5 LOB app for a long time, and some time back had to make a change that I got from the forums/examples here to get the Mini toolbar to come up since I'm not using a ribbon.

Just today people started noticing that depending upon where (vertically) in the RTB the text is, they may or may not be able to change the font via the mini toolbar. In testing in the full app, it appears if the mini toolbar is outside the border of the RTB, I can't change the font... this is very similar to a Filter issue I reported in WPF last week.

In this case, and based on the response I got from the WPF post, Ive put together an extremely small SL5 app that I can attach here. The app consists of a Grid containing one RTB. The Grid is centered on the browser, and in this example, you cannot change the font no matter what line you're on.

We are using 2013.1.220.1050

Thanks in advance

-Dave

huh... guess I thought we could upload projects zipped... but no... so in that case, here's the xaml:

<UserControl xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="SLDemoApp.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
 
    <Grid x:Name="LayoutRoot" Background="White"
          HorizontalAlignment="Center"
          VerticalAlignment="Center">
<telerik:RadRichTextBox x:Name="richTextBox2"
                        Width="500"
                        Height="150"
                        />
    </Grid>
</UserControl>


and here's the code behind:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Controls;
using Telerik.Windows.Controls.RichTextBoxUI;
using Telerik.Windows.Controls.RichTextBoxUI.Dialogs;
 
namespace SLDemoApp
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
            richTextBox2.FindReplaceDialog = new FindReplaceDialog();
            richTextBox2.InsertHyperlinkDialog = new RadInsertHyperlinkDialog();
            richTextBox2.ParagraphPropertiesDialog = new RadParagraphPropertiesDialog();
            richTextBox2.InsertSymbolWindow = new RadInsertSymbolDialog();
            richTextBox2.ContextMenu = new Telerik.Windows.Controls.RichTextBoxUI.ContextMenu();
            richTextBox2.SelectionMiniToolBar = new SelectionMiniToolBar();
            richTextBox2.InsertTableDialog = new InsertTableDialog();
            richTextBox2.TablePropertiesDialog = new TablePropertiesDialog();
            richTextBox2.FontPropertiesDialog = new FontPropertiesDialog();
        }
    }
}




1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 25 Apr 2013, 01:00 PM
Hello Dave,

I was not able to find the same dependency you did. There is a known issue that the combo boxes for FontFamily and FontSize cannot be used when the context menu is also opened (which happens when you right-click in the text). Other than that, the SelectionMiniToolBar seems to work in the same way regardless of the position it is meant to occupy on the page (with or within the borders of the editor).

If you don't agree, we would appreciate it if you could record a video and post a link to it, so that we can observe the behavior on your end and perform the same steps. This can be done using Jing for example.

Regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Dave
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or