Completed
Last Updated: 07 Oct 2021 06:27 by ADMIN
Release LIB 2021.3.1011 (11 Oct 2021)
ADMIN
Created by: Boby
Comments: 1
Category: RichTextBox
Type: Bug Report
3
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.
Completed
Last Updated: 16 May 2019 14:09 by ADMIN
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.
Unplanned
Last Updated: 04 Jan 2018 10:02 by ADMIN
If header/footer containing annotations is set to a document using RadDocumentEditor.ChangeSectionHeader or ChangeSectionFooter methods, the annotations in the body of the header/footer are not paired in the resulting document.

When such document is exported to XAML, NullReferenceException is thrown in the ReindexAnnotationMarkers internal method.

Workaround:
- Do not use RadDocumentEditor to set the footer:
//editor.ChangeSectionFooter(radDocument.Sections.First, HeaderFooterType.Default, new Footer { Body = footerRadDocument });
radDocument.Sections.First.Footers.Default.Body = footerRadDocument;

- Manually "fix" the cloned footer body before the export:
((ISupportInitialize)radDocument.Sections.First.Footers.Default.Body).EndInit();
Completed
Last Updated: 27 Apr 2018 12:24 by ADMIN
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.
Declined
Last Updated: 30 May 2018 15:47 by ADMIN
Annotation Ranges where SkipPositionBefore is set to false on the AnnotationRangeEnd cause cursor jumps when deleting content to the right of the Annotation Range.

Steps to reproduce:
1. Open a job with Annotation Ranges where SkipPositionBefore is set to false on the AnnotationRangeEnd (I used the Document Protection sample in the demo app)
2. Move your cursor to the end of the range.
3. Hit the delete key
Expected: The cursor remains at the end of the AnnotationRange and content to the right is deleted.
Actual: Content to the right is deleted but eventually the cursor will jump to the right by one position and end up outside the Annotation Range.
Unplanned
Last Updated: 23 May 2018 13:35 by Georgi
ADMIN
Created by: Georgi
Comments: 0
Category: RichTextBox
Type: Feature Request
3
Implement Auto Text gallery for inserting text. More information related to Auto Text can be found on the following post:
https://support.office.com/en-us/article/automatically-insert-text-0bc40cab-f49c-4e06-bcb2-cd43c1674d1b
Completed
Last Updated: 15 Jan 2019 07:31 by ADMIN
After merging a document into another one (or pasting it), some of the content is duplicated. The issue is a regression in R3 2018.
Unplanned
Last Updated: 23 Jan 2019 15:57 by ADMIN
Currently, the whole document is kept in memory. In some cases, this creates too much of a memory footprint (even exceeding the usable ~1.2 GB of a .NET process) and causes an OutOfMemoryException. For example, a document with around 2000 pages will fail on import. 



Optimize how style properties are used. Default style properties could be shared among all elements of the same type who does not have any local values.
Completed
Last Updated: 25 Mar 2019 12:15 by ADMIN
The event is not fired when updating the IncludePictureField fields. It is also valid when the fields are in Header or Footer. The issue is a regression in R1 2019.

The UpdateAllFields() method of RadDocumentEditor can be invoked so the event can be fired and give you the possibility to update the images.
Declined
Last Updated: 20 Jun 2019 08:24 by ADMIN

Adding bookmarks with the same name programmatically always returns the first one in case use attempts to navigate to it using the Bookmarks dialog. 

Workaround: Remove the bookmark before adding a new one with the very same name.

Unplanned
Last Updated: 18 Jun 2019 08:24 by ADMIN
Currently the editing methods of RadRichTextBox and RadDocumentEditor work with the current DocumentSelection and CaretPosition for the current RadDocument. In order to execute an editing action on specific range/position, current selection/position should be moved, which is not always desirable. Also, as a side effect, when moving current selection or position, the scroll offset of the document shown in RadRichTextBox is changed.
 
Think of the following approaches:
- Do not scroll the document around when API methods are executed. There is convenient API which could be called to scroll the document when needed. (This will fix the problem only partially). 
- Provide version of the IDocumentEditor methods that accept DocumentSelection or DocumentPosition as parameters, and work with them instead of with the RadDocument.Selection and RadDocument.CaretPosition, similar to InsertFragment(DocumentFragment documentFragmentDocumentPosition documentPosition) and InsertInline(Inline inlineDocumentPosition documentPosition).
Unplanned
Last Updated: 30 Oct 2019 09:25 by ADMIN
While importing definition of a font similar to font:400 15px 'arial'; where the font-weight is defined as a number, this number is parsed as value for font size instead of mapping it to font-weight.
Unplanned
Last Updated: 25 Nov 2019 11:40 by ADMIN
The font family of the fields is changed to Times New Roman while importing RTF documents. The issue is a regression caused in 2019 R3 (LIB 2019.2.610)
Unplanned
Last Updated: 27 Nov 2019 09:43 by ADMIN

Use the attached project to reproduce. 

- Click the "Go To endPosition" button. The Caret remains on the same line.

Unplanned
Last Updated: 20 Mar 2020 05:36 by ADMIN
Bold is not reset when creating a bullet line on a new line 
Unplanned
Last Updated: 06 Jul 2020 06:52 by ADMIN
Default FontFamily and FontSize values (Calibri, 11) are not respected during paste, when the normal style of the source document is modified. Those values are replaced with the default values for RadDocument, which are different (Verdana 12)
Unplanned
Last Updated: 10 Aug 2020 06:12 by ADMIN
The first time users select an image and press Delete deletes only the fields and not the image.
Workaround: Attach to CommandExecuting and CommandExecuted events of RadRichTextBox and ensure the image is deleted using the following code:
private void radRichTextBox_CommandExecuted(object sender, CommandExecutedEventArgs e)
{
    if (e.Command is DeleteCommand && imageToDelete!=null)
    {
        this.radRichTextBox.Document.Selection.Clear();
        this.radRichTextBox.Document.Selection.AddDocumentElementToSelection(imageToDelete);
        this.radRichTextBox.Delete(true);
        this.imageToDelete = null;
    }
}

private ImageInline imageToDelete;
void radRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is DeleteCommand)
    {
        var selectedBoxes = this.radRichTextBox.Document.Selection.GetSelectedBoxes().ToList();
        if (selectedBoxes.Count() == 2 && selectedBoxes[0].AssociatedInline is FieldRangeStart && selectedBoxes[1].AssociatedInline is ImageInline)
        {
            imageToDelete = selectedBoxes[1].AssociatedInline as ImageInline;
        }
    }
}

Unplanned
Last Updated: 09 Sep 2020 14:01 by ADMIN
Created by: Dimitar
Comments: 0
Category: RichTextBox
Type: Bug Report
3
Memory leak when changing the documents
Completed
Last Updated: 24 Aug 2021 14:13 by ADMIN
Release LIB 2021.2.830 (30 Aug 2021)
When calling a ChangeAllFieldsDisplayMode(FieldDisplayMode.Result) on a document containing a multiline document variable ("First Line\vSecond Line\vThird Line") leads to wrongly updated span box text.

The result is: "Third Line¬Third Line¬Third Line"
Unplanned
Last Updated: 10 Jun 2021 05:47 by ADMIN
Currently when one inserts a column and the track changes feature is enabled a message appears that the action will not be marked as change.