Completed
Last Updated: 05 Oct 2022 13:06 by ADMIN
Created by: Adam
Comments: 1
Category: RichTextBox
Type: Bug Report
0

A user reported a significant performance impact with the RichTextBox in our recent update. The UI hangs repeatedly while typing.

Profiling showed a lot of garbage collections, and profiling highlighted the the Telerik class Telerik.Windows.Controls.MarkupExtensions.DocumentsResourceProvider.


#if NETCORE
        private static Style ThemeStyle
        {
            get
            {
                if (themeStyle == null)
                {
                    themeStyle = GetStyleFromApplicationTheme();
                }
                return themeStyle;
            }
        }

        private static Style GetStyleFromApplicationTheme()
        {
            if (StyleManager.IsEnabled && StyleManager.ApplicationTheme != null)
            {
                var themeName = StyleManager.ApplicationTheme.GetType().Name.Trim('_').ToLower();
                themeName = themeName.Replace("theme", string.Empty);

                var themesGeneric = Application.LoadComponent(new Uri("/Telerik.Windows.Controls.RichTextBox;component/themes/generic.xaml", UriKind.Relative)) as ResourceDictionary;
                if (themesGeneric != null)
                {
                    var currentThemeDictionary = themesGeneric.MergedDictionaries.FirstOrDefault(rd => rd.Source != null && rd.Source.OriginalString.ToLower().Contains(themeName));
                    if (currentThemeDictionary != null)
                    {
                        return currentThemeDictionary[typeof(DocumentsResourceProvider)] as Style;
                    }
                }
            }
            return null;
        }

 

I copied this code into my project to debug it, and found:

  1. themeName is correctly calculated to "windows11".
  2. themesGeneric is correctly loaded from the XAML.
  3. currentThemeDictionary gets null because windows11 isn't included in the merged dictionaries.

As the method returns null, it means themeStyle is always null, and it will try again on the next caller. This code is called repeatedly while typing. Using my code (and reflection) to force this ThemeStyle to Fluent fixes the performance, though obviously is a huge workaround.

 

Unplanned
Last Updated: 05 Oct 2022 20:50 by Adam
Setting the margin of the DocumentPrintLayoutPresenter breaks the selection. 
Unplanned
Last Updated: 05 Oct 2022 08:48 by Adam
Provide an option for having a single page even if there is space for more. On a large widescreen monitor, DocumentPrintLayoutPresenter/PagesLayoutManager positions pages side-by-side rather than in a single column.
Completed
Last Updated: 10 Oct 2022 08:54 by ADMIN
Release LIB 2022.3.1010 (10 Oct 2022)
The highlight text button in the ribbon has an invalid icon 
Unplanned
Last Updated: 11 Oct 2022 14:11 by William
When users select content in RadRichTextBox, the selection is automatically extended to include the whole annotation range and they cannot select only a part of it. Allow users to disable that extension.
Unplanned
Last Updated: 12 Oct 2022 09:35 by Matthias
The exception is thrown while trying to load the image from the URI.
Unplanned
Last Updated: 31 Oct 2022 12:54 by Caesar

DeleteAnnotationRange fails to execute when the content is uneditable annotation. For example: PermissionRange with a checkbox content control inside.

A possible workaround would be to manually delete the annotation range from the document element tree:

var rangeEnd = rangeStart.End;
var endParent = rangeEnd.Parent;
if (endParent != null)
{
    endParent.Children.Remove(rangeEnd);
}

var parent = rangeStart.Parent;
if (parent != null)
{
    parent.Children.Remove(rangeStart);
}

this.radRichTextBox.UpdateEditorLayout();

Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
Release R3 2022 SP1
Created by: Caesar
Comments: 2
Category: RichTextBox
Type: Bug Report
0

In MS Word,create a new docx file,  insert a table, select the whole table, insert a bookmark.

Open the docx file with RadRichTextBox, the bookmark is missing.

This is because the bookmarkStart is in the first tc, while the bookmarkEnd is after the last tr, TableImporter failed to import the bookmarkEnd.

 

Here is my fix.

Completed
Last Updated: 14 May 2024 15:37 by ADMIN
Release 2024.2.514 (2024 Q2)
Typing and then deleting all in fast succession sometimes fails while using Microsoft Japanese IME.
Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
Release LIB 2022.3.1219 (19 Dec 2022)
Clicking over an already selected word is not clearing the selection.
Unplanned
Last Updated: 08 Dec 2022 09:10 by TC
InvalidCastException when importing documents having shapes and images that are grouped
Unplanned
Last Updated: 08 Dec 2022 12:43 by Caesar

 The AddParagraphToSelection method adds the first row of a table when it is the element after the paragraph. 

To workaround this manually select the paragraph:

var para = caret.GetCurrentParagraph();
DocumentPosition pos = new DocumentPosition(doc);
pos.MoveToDocumentElementStart(para);
selection.AddSelectionStart(pos); 
pos.MoveToDocumentElementEnd(para); 
selection.AddSelectionEnd(pos);

 this.radRichTextBox.Delete(false);

Unplanned
Last Updated: 13 Dec 2022 07:47 by ADMIN
When one inserts emoji with Ctrl + . and searches, additional characters are added to the RichTextBox.
Unplanned
Last Updated: 13 Dec 2022 12:22 by Stefan
Created by: Stefan
Comments: 0
Category: RichTextBox
Type: Bug Report
0

1 Open RadRichTextBox and press Windows + . to to show the emoji box. 

2 Choose the emoji and press backspace to remove it.

Actual behavior: When you press the backspace to remove the emoji, a square is left

Expected behavior: When you press the backspace the emoji should be deleted.

Completed
Last Updated: 15 Dec 2023 11:44 by ADMIN
Release R3 2023
RadRichtTextBox: Sometimes Double mouse clicks will not execute when clicking into the middle of a letter.
Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
Release R1 2023
Using advanced selection over a line break also selects the first word on the following line.
Unplanned
Last Updated: 21 Dec 2022 13:07 by Caesar
Can't open the popup of a Content Control, if there is another Content Control right after it
Completed
Last Updated: 22 May 2023 10:52 by ADMIN
Release LIB 2023.1.522 (22 May 2023)
Using advanced selection at line-start upwards select the first word.
Unplanned
Last Updated: 22 Dec 2022 09:00 by Swapnil
When you start selecting from a line-start upwards over an empty paragraph and then down to the initial position does not clear the selection.
Unplanned
Last Updated: 22 Dec 2022 09:47 by Choung
Created by: Choung
Comments: 0
Category: RichTextBox
Type: Bug Report
0

In specific cases, the box-drawing characters are not properly aligned and connected.

Observed: