Unplanned
Last Updated: 21 May 2020 11:32 by ADMIN

Paste some text inside RadRichTextEditor. If the text has more rows than the currently visible area you will see that the control does not scroll down to the caret position.

Workaround:

 

private void RadRichTextBox_CommandExecuted(object sender, CommandExecutedEventArgs e)
{
    if (e.Command is PasteCommand)
    {             
        Application.DoEvents();

        bool cursorAtDocEnd = this.radRichTextBox.Document.CaretPosition.IsPositionAtDocumentEnd;
        if (cursorAtDocEnd)
        {
            MoveCaretCommand command = new MoveCaretCommand(this.radRichTextBox.RichTextBoxElement);
            command.Execute(MoveCaretDirections.Down);
        }
    }
}

 

Unplanned
Last Updated: 21 May 2020 11:22 by ADMIN
ADMIN
Created by: Tanya
Comments: 2
Category: RichTextBox
Type: Bug Report
3
Tab stops with visible tab leader (dot, hyphen, underscore) are not exported to PDF.

Steps to reproduce:
- Start with empty document
- In Paragraph Properties dialog, choose Tabs
- In Tab dialog, enter Tab stop position = 2, Leader = underscore, and press Set. Press OK
- Add a word, press Tab, add another word
- Export the text to PDF

Expected: the words are separated with underscores in the exported PDF.
Actual: the words are separated with blank space in the exported PDF.
Unplanned
Last Updated: 20 May 2020 07:03 by ADMIN
Dialogs and Context menu are not applied correctly during a runtime theme change.
Unplanned
Last Updated: 19 May 2020 15:13 by ADMIN
When a <br/> element is the last element in a paragraph, it should be skipped.
Unplanned
Last Updated: 12 May 2020 08:54 by ADMIN
The <br/> tags after </li> are treated as separate paragraphs and inherit the list styling of the previous paragraphs resulting in duplicate bullets.

Workaround
var paragraphsToRemove = this.radRichTextBox.Document.EnumerateChildrenOfType<Paragraph>().Where(p => p.IsInList && p.Inlines.First() is Break);
foreach (var p in paragraphsToRemove)
{
    p.ListId = -1;
}
 
this.radRichTextBox.UpdateEditorLayout();

Unplanned
Last Updated: 08 May 2020 07:12 by ADMIN
When multiple citations are created in MS Word (TestSave.docx) and then the document is opened in richTextBox and you update fields the update command removes the additional citations (TestSave2.docx)
Unplanned
Last Updated: 14 Apr 2020 07:16 by ADMIN
The parent of an already removed span cannot be found and a NullReferenceException is thrown while performing Undo. Also, multiple asserts are failing in Debug mode. The stack trace is:

UnhandledException: Object reference not set to an instance of an object.
UnhandledException:   at Telerik.Windows.Documents.Layout.LayoutElement.SetParent(LayoutElement newParent)
   at Telerik.Windows.Documents.Layout.LayoutBox.EnsureParent()
   at Telerik.Windows.Documents.Layout.LayoutBox.get_Parent()
   at Telerik.Windows.Documents.Layout.LayoutBox.get_ValidParent()
   at Telerik.Windows.Documents.WordPositionHandler.GetParentHandler()
   at Telerik.Windows.Documents.DocumentPosition.GetCurrentSectionBox()
   at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.GetCurrentPage()
   at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
Unplanned
Last Updated: 09 Apr 2020 14:16 by ADMIN
The document content is not measured properly, leading to incorrect selection ranges.
Unplanned
Last Updated: 20 Mar 2020 05:36 by ADMIN
Bold is not reset when creating a bullet line on a new line 
Unplanned
Last Updated: 17 Mar 2020 13:28 by ADMIN
When copy a modified Heading from Word document and paste it into a not empty RichTextBox the modified styles are not correctly imported.
Unplanned
Last Updated: 10 Mar 2020 12:36 by ADMIN
When GoToBookmark method is called and the current position is before the bookmark, the screen is not repositioned, causing the bookmark sometimes to appear at the last visible row.
Unplanned
Last Updated: 10 Mar 2020 07:23 by ADMIN
Invalid document is generated when track changes is enabled and the InsertFragment method is used
Unplanned
Last Updated: 06 Mar 2020 05:44 by ADMIN
Created by: Joshua
Comments: 0
Category: RichTextBox
Type: Bug Report
1

A reference in DocumentFragment to RadDocument (CopySource property) can cause a memory after copy-paste between RadDocument.

Workaround:

public static bool ReleaseClipboardExReferences(
    RadDocument document)
{
    dynamic clipboardEx = new DynamicProxyObject(typeof(ClipboardEx));

    if (clipboardEx.documentClipboardData?.CopySource is DynamicProxyObject copySource
        && object.ReferenceEquals(copySource.Instance, document))
    {
        clipboardEx.documentClipboardData = null;
        return true;
    }

    if (clipboardEx.CopiedDocumentFragment?.Fragment?.CopySource is DynamicProxyObject fragmentCopySource
        && object.ReferenceEquals(fragmentCopySource.Instance, document))
    {
        clipboardEx.CopiedDocumentFragment = null;
        return true;
    }

    return false;
}

Unplanned
Last Updated: 27 Feb 2020 06:42 by ADMIN
The page number field is not correctly calculated when merging documents
Unplanned
Last Updated: 21 Feb 2020 15:29 by ADMIN
Image adorner is not properly ported and it is not supported in .Net Core.
Unplanned
Last Updated: 10 Feb 2020 13:59 by ADMIN

Use the attached project to reproduce:

- Click the first button so the image is changed

- Click the second button and examine the exported HTML

Expected: the Uri is exported

Actual: the Uri is not exported.

Workaround: 

p.Inlines.AddAfter(image, image2);
p.Inlines.Remove(image);

Unplanned
Last Updated: 04 Feb 2020 18:36 by ADMIN

The document styles are not respected because of wrongly imported custom style name after copy-paste from MS Word and exported to HTML.

Workaround: avoid using styles with braces in their name.

Unplanned
Last Updated: 03 Feb 2020 11:15 by ADMIN

To reproduce:

- Select several words by holding the control key. 

- Paste some text. 

Result: the first word is replaced, the other are deleted

Expected: the text should be pasted in all selected places

Workaround:

private void RadRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is PasteCommand)
    {
        var ranges = radRichTextBox.Document.Selection.Ranges.ToList();
        if (ranges.Count > 1)
        {
            e.Cancel = true;

            foreach (var range in ranges)
            {
                radRichTextBox.Document.Selection.Clear();
                radRichTextBox.Document.Selection.AddSelectionStart(range.StartPosition);
                radRichTextBox.Document.Selection.AddSelectionEnd(range.EndPosition);
                PasteNewText();
            }      
        }
    }
}
public void PasteNewText()
{
    DocumentFragment clipboardDocument = null;
    string clipboardText = null;
    bool clipboardContainsData = false;

    if (ClipboardEx.ContainsText(null))
    {
        clipboardText = ClipboardEx.GetText(null);
        clipboardContainsData = true;
    }

    if (!clipboardContainsData)
    {
        return;
    }

    if (clipboardDocument != null)
    {
        this.radRichTextBox.ActiveDocumentEditor.InsertFragment(clipboardDocument);
    }
    else if (!string.IsNullOrEmpty(clipboardText))
    {
        this.radRichTextBox.ActiveDocumentEditor.Insert(clipboardText);
    }
}

Unplanned
Last Updated: 03 Feb 2020 09:00 by ADMIN

To reproduce:

- Hold the control key and double click a word

Actual: the entire paragraph is selected

Expected: the current word should be selected, the existing selection should be extended.

Unplanned
Last Updated: 15 Jan 2020 09:21 by ADMIN
The caret position does not move at the end of the line with continuous text (see attached).
1 2 3 4 5 6