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.

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.
Unplanned
Last Updated: 01 Aug 2022 05:51 by William
RichTextBox: When the control height is set to a single line the caret is in the wrong position after the app started.
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 = " ";
    }
}

Completed
Last Updated: 07 Jul 2022 10:07 by ADMIN
Release LIB 2022.2.711 (11 Jul 2022)
When the definition of margin-[left/right] contains a CSS function as a value for the property, NullReferenceException is thrown while importing the content.
Completed
Last Updated: 06 Jul 2022 12:20 by ADMIN
Release LIB 2022.2.711 (11 Jul 2022)
When the definition of font-weight contains a CSS variable as a value for the property, NullReferenceException is thrown while importing the content.
Completed
Last Updated: 05 Jul 2022 14:33 by ADMIN
Release LIB 2022.2.711 (11 Jul 2022)
  1. In MS Word, create a table with text in every cell, but just before the table, add a paragraph with text (you cannot reproduce the problem with an empty paragraph)
  2. In the RadRichTextBox, create a new document
  3. Activate Review/Track Changes
  4. Copy and paste all the content from MS Word >> as a result none of the cells in the table has change tracking markup
  5. If you copy only the table from MS Word (without the non-empty paragraph), it is working as expected
Completed
Last Updated: 05 Jul 2022 12:11 by ADMIN
Release LIB 2022.2.711 (11 Jul 2022)
The error is thrown while measuring a nested table and one of its rows is separated on different pages. 
Completed
Last Updated: 04 Jul 2022 07:22 by ADMIN
Release LIB 2022.2.704 (04 Jul 2022)
When the font of the document is set to a non-default font (for example Arial) and the caret is moved around the same line, it jumps up and down at the start and end of words.
Completed
Last Updated: 04 Jul 2022 07:21 by ADMIN
Release LIB 2022.2.704 (04 Jul 2022)

RichTextBox: Exception when loading a table with a specific layout in R2 2022

This works with R1 2022 SP1

Completed
Last Updated: 27 Jun 2022 08:52 by ADMIN
Release LIB 2022.2.627 (27 Jun 2022)
When importing a document with a content control present inside the header/footer, only the content remains and the control itself gets stripped.
Completed
Last Updated: 27 Jun 2022 08:52 by ADMIN
Release LIB 2022.2.627 (27 Jun 2022)
When in Header/Footer mode trying to insert a content control causes it to be added inside the main document.
Unplanned
Last Updated: 20 Jun 2022 11:07 by ADMIN
Scheduled for LIB 2022.1.411 (11 Apr 2022)
 The layout hangs when importing HTML with nested tables and setting the padding of all cells
Unplanned
Last Updated: 17 Jun 2022 12:54 by ADMIN

No visual cue when image deleted or inserted when "Track changes" is activated. 

When inserting an image with the Track Changes option toggled, the image should be underlined with red and it isn't. When deleting an image with Track Changes on, it is also not crossed with red. In both cases, the only mark that a change was made is the vertical line on the left.

Unplanned
Last Updated: 17 Jun 2022 08:11 by ADMIN
Replacing a piece of text through find/replace dialog causes intersecting insert/delete ranges. 
Unplanned
Last Updated: 15 Jun 2022 16:45 by Steve
The document can be properly visualized in MS Word and RadRichTextBox but upon opening it with WordPad, the image is not visible. Trying to create a FlowDocument object from it leads to an exception (System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+.').
Unplanned
Last Updated: 15 Jun 2022 08:46 by ADMIN
ADMIN
Created by: Todor
Comments: 8
Category: RichTextBox
Type: Feature Request
8
Implement the export of notes (footnote, endnote) in the PdfFormatProvider of the RadRichTextBox.
Unplanned
Last Updated: 15 Jun 2022 08:11 by Telerik Admin
CopyPropertiesFromOverride() method of InlineUIContainer is called more than once for every Copy/Paste command.