Unplanned
Last Updated: 27 Sep 2022 11:44 by Margret
Internal exception of type NullReferenceException is thrown when the field has an empty code fragment.
In Development
Last Updated: 27 Sep 2022 08:58 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: 27 Sep 2022 06:14 by ADMIN
Created by: William
Comments: 2
Category: RichTextBox
Type: Feature Request
1
Merge undo commands when typing consecutive text. In Word when typing continuous text (without changing the caret position) it is added as only one undo step. In RichTextBox every keystroke (or multiple keystrokes with less than 15 milliseconds in delay) is added as separate undo steps.
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.
In Development
Last Updated: 15 Sep 2022 15:15 by ADMIN

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.

Unplanned
Last Updated: 08 Sep 2022 09:58 by Caesar
When users select a value and perform undo on that selection, then the same value cannot be selected again. Another value should be selected.
Unplanned
Last Updated: 08 Sep 2022 06:24 by Caesar
If you copy a checkbox content control with non-default checked/unchecked symbols and interact with it by changing its state, you will observe that the said symbols are the default ones.
Unplanned
Last Updated: 06 Sep 2022 10:43 by TC
The "forms" restriction mode is not respected in RadRichTextBox. In Word, you can allow the user to edit the content controls only and this is not respected in RadRichTextBox.
Unplanned
Last Updated: 05 Sep 2022 12:55 by Vladimir
The editor used for the footnotes causes ArgumentNullException when trying to pass the dialog to it.
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
16
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
Unplanned
Last Updated: 29 Aug 2022 11:36 by Caesar
When users insert a Content Control to the document, save the document as XAML, and reload it, the content control cannot be edited.
Unplanned
Last Updated: 25 Aug 2022 08:44 by Caesar
Importing document with content controls inside a TableCell leaves only the content 
Unplanned
Last Updated: 24 Aug 2022 06:43 by ADMIN
ADMIN
Created by: Martin
Comments: 0
Category: RichTextBox
Type: Feature Request
0
The line numbers are currently skipped on export to PDF.
Unplanned
Last Updated: 23 Aug 2022 11:34 by William
When the image is at the right-most side of the page and has text appended just before it, adding caption results in splitting the content prior to the image. The last symbol of the content appears after the caption. The issue is reproduced sporadically.
Unplanned
Last Updated: 19 Aug 2022 02:35 by Caesar

Importing a document with block-level content controls from XAML causes them to become corrupt. If you scroll to a position in which the said control is only partially visible a NullReferenceException is thrown.

A possible workaround would be to initially save the document as a DOCX (just exporting it to DOCX will not fix the issue as the information is already corrupt).

Unplanned
Last Updated: 17 Aug 2022 10:00 by Ryan
The Mentions popup is not shown when the cursor is in the last line and the line is at the down edge of the control. Gif is attached. 
Unplanned
Last Updated: 12 Aug 2022 07:23 by Swapnil
RichTextBox: Add Word like selection where the entire word is selected when moving forward. When moving backward only the characters are deselected. 
Unplanned
Last Updated: 10 Aug 2022 07:24 by Caesar

Copying content controls using DocumentFragment and then inserting them causes several undesired behaviors.

For example, if the original content control is in "Placeholder mode" (meaning the initial pre-generated text is intact), after the copy operation, its content is treated as user inserted and it is not fully selected on entering the control. Another issue is with Plain Text/Date Picket/Repeating Section control - after the copy, their Properties dialog cannot be shown.

1 2 3 4 5 6