Completed
Last Updated: 03 Dec 2019 11:57 by ADMIN
Release 2019.3.1209 (12/09/2019)
Adam
Created on: 30 Jan 2019 17:09
Category: RichTextBox
Type: Bug Report
1
RichTextBox: The layout updates stop as a result a handled NullReferenceException after pasting a table with an empty first cell as the first element in the document
There is a NullReferenceException thrown while trying to compare positions for restoring them after pasting the document. The exception is handled but after it is thrown, the layout stops updating.

Workaround: Ensure the document is not empty before pasting content inside:
private void RadRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is PasteCommand && this.radRichTextBox.Document.IsEmpty)
    {
        this.radRichTextBox.Insert(" ");
    }
}

0 comments