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

Font size for text provider

3 Answers 68 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 08 Aug 2012, 12:55 PM
Hello
I have following code:

<telerik:TxtDataProvider Name="txtProvider"  RichTextBox="{Binding ElementName=rtbLog}" Text="{Binding Path=Log, Mode=OneWay}" />
<telerik:RadRichTextBox Grid.Row="1" Grid.ColumnSpan="3" HorizontalAlignment="Left" IsContextMenuEnabled="True" IsReadOnly="True" Margin="5,3,0,0" IsSelectionMiniToolBarEnabled="False" IsSpellCheckingEnabled="False" Name="rtbLog" VerticalAlignment="Top" />
All I want is to display text, but I have following issues:

1. I cannot set font size and familly. It is very big on the beggining. Even if I set font size for richtextbox it is simple not working.
2. I have context menu enabled but no context menu is displayed. This is for read only purposes only so I would simply have copy context menu.

3 Answers, 1 is accepted

Sort by
0
Accepted
Petya
Telerik team
answered on 10 Aug 2012, 11:06 AM
Hello Marcin,

Thank you for contacting us. Here are my suggestions:
  1. RadRichTextBox has a property DocumentInheritsDefaultStyleSettings which has to be set to True in order to set default style properties. You can find info on this topic in this article.
  2. There is a minimal set of assembly references you have to add if you want to use RadRichTextBox. The pop-ups, including the ContextMenu, are located in the Telerik.Windows.Controls.RichTextBoxUI assembly. This article can help you in this matter.

Please, don't hesitate to get back to us if you need further assistance.

All the best,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sanket
Top achievements
Rank 1
answered on 29 Apr 2016, 05:52 PM

How can I dynamically change font size of selected text in telerik rad rich text box?

 

please help!

0
Tanya
Telerik team
answered on 03 May 2016, 03:15 PM
Hi Sanket,

Please, find the answer to this question in the other forum thread.

Regards,
Tanya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
RichTextBox
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Petya
Telerik team
Sanket
Top achievements
Rank 1
Tanya
Telerik team
Share this question
or