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.
Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
Release R3 2022 SP1
Extension method GetValueOrNull is exists in two assemblies. 
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.
Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
German localization for Automatic color is wrong in the Table border dialog.
Completed
Last Updated: 07 Dec 2022 11:37 by ADMIN
Release R1 2023
If the position is moved to the end of a paragraph by clicking with the mouse in the empty space just left of the paragraph text, sometimes the subsequent text input (typing, pasting) is inserted at the beginning of the next paragraph, instead of at the end of the clicked one. 

The issue is somewhat random and cannot be reproduced consistently, though it's not hard to reproduce if clicking and typing is fast enough.
Completed
Last Updated: 05 Dec 2022 12:08 by ADMIN
Release R3 2022 SP1
When importing image with invalid ur/base64 encoded data the document won't be opened correctly and an exception will be thrown. Load default image instead of throwing exception and failing to open the document.
Completed
Last Updated: 10 Nov 2022 06:28 by ADMIN
Release LIB 2022.3.1017 (17 Oct 2022)

The scenario:

We have a document with text inside and we are executing the following steps:

  1. Mouse left button down.
  2. Select part of the text.
  3. Replace the selection with new text programmatically (the text should be with a different length).
  4. Release the left button.

Observed: Before releasing the mouse button the cursor position is correct but after releasing it the cursor position is changed to the initial selection end.

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 
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.

 

Completed
Last Updated: 04 Oct 2022 13:33 by ADMIN
Release LIB 2022.3.1010 (10 Oct 2022)
Internal exception of type NullReferenceException is thrown when the field has an empty code fragment.
Completed
Last Updated: 26 Sep 2022 13:26 by ADMIN
Release LIB 2022.3.1003 (03 Oct 2022)
The cursor jumps to the next line sometimes when clicked at the end of the line.
Completed
Last Updated: 05 Sep 2022 07:07 by ADMIN
Release LIB 2022.2.905 (09 Sep 2022)
When ScaleFactor is set to less that (1,1), this causes the caret to disappear at specific positions in the document. These positions depend on the exact value of the scale factor. The focus is still in the editor and users can type.

Note that if the scale factor changes, the positions where the caret is not visualized will change as well.
Completed
Last Updated: 30 Aug 2022 12:45 by ADMIN
Release R3 2022
ADMIN
Created by: Boby
Comments: 0
Category: RichTextBox
Type: Feature Request
17
Add support for line numbering in paged layout mode, similar to MS Word.
Completed
Last Updated: 30 Aug 2022 11:46 by ADMIN
Release R3 2022
Completed
Last Updated: 05 Aug 2022 10:11 by ADMIN
Release LIB 2022.2.808 (08 Aug 2022)

RichTextBox: The RepeatButtonStyle is not merged in the RichTextBox Xaml file when declaring the styles on a window level.

 

Workaround: Add the dictionaries to the App.xaml file instead of the Window file.

Completed
Last Updated: 04 Aug 2022 16:18 by ADMIN
Release LIB 2022.2.808 (08 Aug 2022)

User is not able to select the current date wen Date Picker content control is used.

Select another date and then the current one as a workaround.

Completed
Last Updated: 03 Aug 2022 13:48 by ADMIN
Release LIB 2022.2.808 (08 Aug 2022)

If there is an empty cell with a permission range and you go to it by pressing the Tab key from the previous cell and then start typing it removes the annotation range. If the cell with the permission range is not empty and the same technique is used there is an InvalidOperationException thrown with the message: "Selection contains uneditable ranges".

Here is a workaround:

this.radRichTextBox.CommandExecuted += this.RadRichTextBox_CommandExecuted;
private void RadRichTextBox_CommandExecuted(object sender, CommandExecutedEventArgs e)
{
    if (e.Command is TabForwardCommand)
    {
        DocumentPosition caret = this.radRichTextBox.Document.CaretPosition;
        if (caret.IsPositionInsideTable)
        {
            DocumentSelection selection = this.radRichTextBox.Document.Selection;
            DocumentPosition start = selection.Ranges.First.StartPosition;
            DocumentPosition end = selection.Ranges.Last.EndPosition;
            Inline currentInline = start.GetCurrentInline();
            if (currentInline is PermissionRangeStart)
            {
                start.MoveToNext();
            }

            Inline previousInline = end.GetPreviousInline();
            if (previousInline is PermissionRangeEnd)
            {
                end.MoveToPrevious();
            }

            this.radRichTextBox.Document.Selection.SetSelectionStart(start);
            this.radRichTextBox.Document.Selection.AddSelectionEnd(end);
        }
    }
}

First, you need to subscribe to the CommandExecuted event. Then change the selection after a TabForwardCommand to exclude the PermissionRangeStart and PermissionRangeEnd elements. Your workaround also works, so there is no need to change it.

Completed
Last Updated: 03 Aug 2022 09:17 by ADMIN
Release LIB 2022.2.808 (08 Aug 2022)
The localization key used for the UndoGroup is for the permission ranges and puts a record with a wrong name inside the History stack.
Completed
Last Updated: 20 Jul 2022 09:03 by ADMIN
Release LIB 2022.2.627 (27 Jun 2022)
Created by: min
Comments: 2
Category: RichTextBox
Type: Bug Report
1
Typing in Korean repeats symbols at the end. This breaks the input and the user is unable to enter the text desired.
Completed
Last Updated: 07 Jul 2022 10:55 by ADMIN
Release LIB 2022.2.711 (11 Jul 2022)
The paragraph is not correctly copied and carries empty inlines that cause the exception.

Workaround: Add some content to the inlines of the copied paragraph:
foreach (Span span in paragraphCopy.EnumerateChildrenOfType<Span>())
{
    if (string.IsNullOrEmpty(span.Text))
    {
        span.Text = " ";
    }
}