The parent of an already removed span cannot be found and a NullReferenceException is thrown while performing Undo. Also, multiple asserts are failing in Debug mode. The stack trace is: UnhandledException: Object reference not set to an instance of an object. UnhandledException: at Telerik.Windows.Documents.Layout.LayoutElement.SetParent(LayoutElement newParent) at Telerik.Windows.Documents.Layout.LayoutBox.EnsureParent() at Telerik.Windows.Documents.Layout.LayoutBox.get_Parent() at Telerik.Windows.Documents.Layout.LayoutBox.get_ValidParent() at Telerik.Windows.Documents.WordPositionHandler.GetParentHandler() at Telerik.Windows.Documents.DocumentPosition.GetCurrentSectionBox() at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.GetCurrentPage() at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
When document with large images (the original image cannot fit on the page without resizing) are exported to PDF, the PDF document is visualized distorted by Adobe Reader. The issue is regression, introduced in 2017 R1 SP1. Workarounds: - Use images that can fit on the page. - Zoom RadRichTextBox to scale which allows the large images to fit fully on the page. The fix is available in LIB Version 2017.2.627.
The hyperlinks are not exported properly to DOCX, RTF and HTML format if the HTTP:// prefix is not added in the address when they were created. Steps to reproduce: 1. Open RadRichTextBox and click on Insert tab -> Hyperlink 2. In address field type: www.telerik.com 3. Export the file to DOCX, RTF or HTML format 4. Open the exported file and click on the hyperlink Observed result: The hyperlink is pointing to a local resource instead of opening the URL. As a workaround, the regex used to match a partial hyperlink could be further extended. If this regex succeeds in matching a partial hyperlink the HTTP:// prefix will be automatically added to the partial hyperlink. Here is example of how the regex should be accessed: (this.radRichTextBox.InsertHyperlinkDialog as RadInsertHyperlinkDialog).HyperlinkPattern
Currently, ParagraphDefaultSpacingAfter and ParagraphDefaultSpacingBefore are not applied to paragraphs in tables. This should be changed for consistency with the rest of the document.
"http://" prefix is automatically added by the Insert Hyperlink Dialog when the provided URI is to local path or mapped drive, e.g. "Z:\temp". Workaround 1: Set HyperlinkPattern to something that matches file paths, e.g.: (this.radRichTextBox.InsertHyperlinkDialog as RadInsertHyperlinkDialog).HyperlinkPattern = ".*"; Workaround 2: Insert such paths with the "file://" prefix.
1. Create a hyperlink before a section break.2. Remove this hyperlink by clicking on the context menu. The fix is available in our latest official release 2014 Q3 SP1.
Undoing changes to words wrapped in annotation ranges throw InvalidCastExceptions as AnnotationRangeStarts are casted to AnnotationRangeEnd. Steps to reproduce: 1. Add a bookmark to a word 2. Add a bookmark to the following word in the document 3. Use the find dialog to highlight those two words 4. Bold the text 5. Press Ctrl+Z to undo Observed: Repeated InvalidCastException dialogs Fix available in LIB Version 2018.1.430.
UpdateAllFields method causes StackOverlfowException when: - there are two TOC fields in the document with specific location (no paragraphs between the two fields) - when merge fields containing new lines ('\r\n') are updated. UpdatField method causes StackOverlfowException in the IntervalTree class when: - A TOC field is updated and the field contains field separator (<w:fldChar w:fldCharType="separate"/>) in its definition. The exception is reproducible when there are section breaks before the TOC. Fix available in LIB Version 2017.2.627.
The following controls are not faded out when the RadRichTextBox has its IsReadOnly property set to true : - the labels inside Options and Position RadRibbonGroups in the Headers & Footers tab; -table styles gallery; alignment of table cell (743884); When in read-only range: - Bookmark;
The exception is thrown by the SystemFontsManager internal class from Telerik.Windows.Documents.Core, so it can observed when using RadPdfViewer, RadRichTextBox, RadSpreadsheet. The reason is not clear, posssible causes are: - Corrupted fonts after upgrade from Windows XP - Enabling of Block untrusted fonts feature (https://docs.microsoft.com/en-us/windows/threat-protection/block-untrusted-fonts-in-enterprise ) The call stack is as follows: System.TypeInitializationException: The type initializer for 'Telerik.Windows.Documents.Core.Fonts.SystemFontsManager' threw an exception. ---> System.IO.FileNotFoundException: Unable to find the specified file. at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr) at MS.Internal.Text.TextInterface.FontList.get_Item(UInt32 A_0) at MS.Internal.Text.TextInterface.FontList.FontsEnumerator.get_Current() at MS.Internal.FontFace.TypefaceCollection.Enumerator.get_Current() at System.Windows.Media.Fonts.TypefaceCollection.<GetEnumerator>d__11.MoveNext() at Telerik.Windows.Documents.Core.Fonts.SystemFontsManager..cctor() Workaround: Manually delete all registry key values in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts pointing to files outside of the Fonts folder.
Focus events (GotFocus, LostFocus) are raised inconsistently for RadRichTextBox, due to the internal translation of the focus to the Caret. Scenarios: 1. Clicking inside the control, when the focus is already inside the control, triggers LostFocus, GotFocus, LostFocus, GotFocus events. 2. Switching internal editors (headers/footers) raises GotFocus and LostFocus. 3. If the control is inherited and OnGotFocus/OnLostFocus are overriden, they are never called (despite OnGotFocus one time in the beginning The behavior is problematic, as this events are useful for custom validation scenarios.
Decimal tab stops are aligning numbers to the thousands separator (,) instead of to the decimal point (.). The fix will be available in the next official release Q3 2014
After merging a document into another one (or pasting it), some of the content is duplicated. The issue is a regression in R3 2018.
The fix is available in our LIB release (v. 2015.3.1123).
When a symbol is inserted, the font family of RichTextBox is set to the symbol's font family. Workaround: Create a custom InsertSymbolDialog. The font family could be persisted in the Show() method of the new dialog and reset when the dialog is closing. Attached is a sample project demonstrating the workaround.
If a table style is applied to a table, and then document is exported/imported to RTF, properties of the style are applied as local properties. Subsequent edits of the style (or changing the style of the table) seems to not work, as the local properties are with higher priority.