If we have a paragraph containing single span which has set red foreground as a local value, applying 'Heading 1' style on that paragraph from the RadRichTextBox' Styles Gallery doesn't change the span's foreground to blue (which comes from the applied style), but preserves the red value. Workaround: To clear a given property, basing on some logic which determines if it should be cleared. For example: this.radRichTextBox.CommandExecuting += (s, e) => { if (e.Command is ChangeStyleNameCommand) { var style = this.radRichTextBox.Document.StyleRepository.GetValueOrNull(e.CommandParameter.ToString()); if (style.Type == Telerik.Windows.Documents.Model.Styles.StyleType.Paragraph) { Paragraph paragraph = this.radRichTextBox.Document.CaretPosition.GetCurrentParagraphBox().AssociatedParagraph; foreach (Span span in paragraph.EnumerateChildrenOfType<Span>()) { span.ClearValue(Span.ForeColorProperty); } } } };
Adding a custom list could be done by using the AddCustomListStyle method of RadDocument. However, this operation will not be included in the Undo stack. Deleting the full chain of relationships between a list style and a document list is not possible.
The issue is reproducible when the document contains a custom Paragraph style the ListId of which related to a custom ListStyle in the document.
Empty paragraph containing only a section break shouldn't be translated on the next page if there isn't enough space for it on the current page.
Instances of RadDocument are leaking in addition to other objects when the CreateDeepCopy method of a Section is called. The section contains one paragraph in its blocks and has one paragraph in the default header. Fix available in LIB Version 2017.3.1002.
NullReferenceException is thrown when deleting content. The delete action is executed over a selection. The selection starts from the middle of a paragraph and ends in a table. The paragraph should have a line break as a first element.
If the document contains lists with applied customs style, when trying to open the Manage Styles Dialog using the button in the ribbon, ArgumentNullException is thrown and handled internally, and the dialog is not opened. If the user clicks the button multiple times (the number of lists with custom styles), the dialog is opened. Steps to reproduce: 1. Create a custom list style. 2. Add some test text in the RadRichTextBox. 3. Apply the custom list style in two places in the document. 4. Click on the Change Styles button. Observed: Dialog is not opened. Expected: The dialog should open.
This item is duplicated. Please follow the other item at http://feedback.telerik.com/Project/143/Feedback/Details/159291.
Table indent property could not be styled through style as it receives a local value with the insertion of the table
Enable import/export of read only ranges (protected parts of the document) from/to Rtf documents.
The issue is reproducible when the style of the paragraph with the revisions is changed for the second time.
Rtf document cannot be imported when it has an empty table row which have row spanned cells only.
There are missing values for the localization strings in: RichTextBox: Unmerge Cells in the context menu RichTextBox: NoColor string in the color picker
The UI indicates that a strikethrough is applied, but it is not visible in the document. Workaround: Reorder the UI layers of RadRichTextBox so that the one responsible for drawing the strikethrough decoration is added in a higher position: protected override void BuildUILayersOverride(IUILayerContainer uiLayerContainer) { uiLayerContainer.UILayers.Remove(DefaultUILayers.StrikethroughDecoration); uiLayerContainer.UILayers.AddAfter(DefaultUILayers.UnderlineDecoration, new StrikethroughTextDecorationUILayer()); }
The case "margin: 0px" is imported only as margin-top. This results in spacing-after property of the paragraph to have an incorrect value. There is a possible workaround if you have control over the construction of the HTML. Change the "margin: 0px" to "margin: 0px 0px 0px 0px"
Watermark is drawn for each page in the RadDocument. When the watermark is a larger image, an OutOfMemoryException might occur during export to PDF. The same applies for images in header/footer.
If an Rtf document is imported and then exported to a Docx file, every single paragraph has associated list when the document is opened in MS Word. Workaround: Before the document export, clear the ListId property: if (this.radRichTextBox.Document.Style.ParagraphProperties.ListId == -1) { var property = this.radRichTextBox.Document.Style.ParagraphProperties.GetStyleProperty(Paragraph.ListIdProperty); property.ClearValue(); }
This includes everything related to: - Navigation of the controls only with keyboard (Tab, Shift+Tab, arrows, Alt+<Letter>) - Correct Screen Reader pronunciation when entering into/navigating in the control, including RadRichTextBox itself.
When documents containing images (e.g. few JPEGs with size of 5 MB) are loaded, the memory usage of the process goes up pretty quickly and eventually OutOfMemoryException is thrown. This is not conventional memory leak, as managed types are not leaking. After some investigation, we believe that GC cannot collect some MemoryStream objects (used for the conversion of the image from Base64 to PNG) from the Large Object Heap fast enough, or LOH becomes fragmented. Available in LIB version: 2017.1.213
Improve the performance when a document is printed.