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.

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.

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: 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: 18 Aug 2023 08:06 by ADMIN
Release LIB 2022.2.808 (08 Aug 2022)
When a non-breaking space appears after a letter and punctuation symbol, it is not respected and the line can break on 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: 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: 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: 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: 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+.').
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. 
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.
Unplanned
Last Updated: 09 Jun 2022 11:08 by Xiao
When there is a table and a paragraph in the header, the added watermark appears multiple times.
Unplanned
Last Updated: 07 Jun 2022 06:00 by Choung
The HighlightColor of spaces at the end of the line is not correct when the FlowNoWrap mode is used.