Appling the following command changing the margin but doesn't change the position of the DocumentRuler:
this.radRichTextBox.ActiveDocumentEditor.ChangeSectionPageMargin(new Padding((int)Unit.InchToDip(3.0)));
The result:
MethodInfo method = typeof(RadRichTextBoxRulerController).GetMethod("OnSeparatorsChanged", BindingFlags.NonPublic | BindingFlags.Instance);
method.Invoke(this.ruler.Controller, null);
<telerik:DocumentRuler x:Name="ruler">
While typing in RadRichtextBox using Korean (Microsoft IME) keyboard "space" or "Enter" repeats the last typed character.
Workaround: Create a custom caret (example for custom caret) and override the EnableAsynchronousTextInsertion property so you can set it to false.
In a specific scenario when there are many tables in a document the following case leads to NullReferenceException.
- Select few tables
- while mouse is still selecting tables use keyboard's Ctrl + A
- Leave the mouse
- use Ctrl + A again (this time everything is selected)
- hit Delete
- Object reference not set to an instance of an object is thrown
htmlString = htmlString.Replace("<p>", string.Empty).Replace("</p>", string.Empty);
Here we are:
HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
htmlProvider.ExportSettings.StylesExportMode = StylesExportMode.Inline;
string _html =
@"
<html>
<head>
<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">
</head>
<body>
<div name=""divtagdefaultwrapper"" style=""font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0"">
<div class=""WordSection1"">
<p class=""MsoNormal"" style=""text-autospace:none"">
<span style=""font-size:11pt; color:rgb(31,73,125)"">
I am out of office, please contact Aaaaaa Bbbbbbb (Tel: +1-234-567-8900/email:
<a href=""mailto:aaaaaa.bbbbbb@zzz.com"">aaaaaa.bbbbbb@zzz.com</a>) for assistance
</span>
</p>
</div>
</div>
</body>
</html>
";
RadDocument _doc = htmlProvider.Import(_html);
radRichTextBox.Document = _doc;
And here is an exception:
System.NullReferenceException
When a content control check box updates it state at run-time, any local formatting is lost.
Workaround: Formatting defined in style definition is properly kept.