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

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.
Completed
Last Updated: 08 May 2023 13:07 by ADMIN
Release LIB 2023.1.522 (22 May 2023)
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: 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: 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. 
Completed
Last Updated: 19 Jan 2023 14:56 by ADMIN
Release R3 2022 SP1
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.

Unplanned
Last Updated: 05 Aug 2022 05:45 by ADMIN
Selecting the same date after Undo operation in Date content control does not select the date.
Unplanned
Last Updated: 04 Aug 2022 12:39 by Caesar

In my usage scenario,  I want to allow the users to do some specific actions like changing the font or inserting a table row in those restricted areas.

My current implementation is to modify the source code of RadRichTextBox, expose RespectDocumentProtection and RespectNonDeletableRanges, and temporarily set these properties to false before performing modifications in those restricted areas.

Currently, the properties are available in RadDocumentEditor only.

Unplanned
Last Updated: 10 Mar 2023 11:09 by ADMIN

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

Another way to reproduce this issue:

1. Create a new document and insert a Rich Text Content Control.

2. Save the document as a XAML file.

3. Reopen the XAML file.

4. Move the caret inside the Content Control.

5. Try to insert a new line by hitting Enter - no new line is added as the content control is marked as Inline Level after the import in step 3.

Case 2: 

Create a document with TOC where the content control of the TOC contains some other inlines.

 

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.