When inserting a content control (structured document tag) into an empty RadDocument using one of the overloads of the InsertStructuredDocumentTag method accessible from RadRichTextBox and RadDocumentEditor, a NullReferenceException is thrown.
Workaround: Invoke the EnsureDocumentMeasuredAndArranged method before inserting the content control:
document.EnsureDocumentMeasuredAndArranged();
RadDocumentEditor editor = new RadDocumentEditor(document);
editor.InsertStructuredDocumentTag(SdtType.CheckBox);
Bookmarks are not imported and missing from a specific document scenario.
Workaround: Import and then export the document using the WordsProcessing library and then open it with the editor.
In certain rare occasions, double-clicking a table cell may throw:
inline does not belong to this document.
at Telerik.Windows.Documents.Model.RadDocument.GetContainingAnnotationRanges[TRangeStart](Inline inline, Predicate`1 filter, Boolean inclusive)
at Telerik.Windows.Documents.Selection.MouseSelectionHandler.HandleCheckBox(InlineLayoutBox layoutBox)
at Telerik.Windows.Documents.Selection.MouseSelectionHandler.RegisterDocumentSingleMouseDown(Boolean ctrlPressed, Boolean shiftPressed, Point position, UIElement originalSource)
. . .
Binding errors from RadRibbonGallery in the TableStylesGallery are outputted in the Output window in Visual Studio, because of binding to the StyleDefinitions and CurrenSelectedStyle properties of the gallery's view model.
Type a few lines in RadRichTextBox.
Double-clicking within a word, holding down the mouse button on the second click, and then drag it.
Actual: Dragging will move the word instead of extending the selection as it should.
Expected: The selection should be extended. Moving the word shouldn't happen unless you release after the double click and then click and drag.
Depending on the current layout of the document, invoking SetPosition() for a specific location might result in positioning the caret on the line prior to the expected one.
Steps to reproduce:
radRichTextBox.Insert("one: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("two: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("tree: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("four: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("five: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("seks: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("seven: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("eitgh: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("nine: ");
radRichTextBox.Insert(Environment.NewLine);
radRichTextBox.Insert("ten: ");
radRichTextBox.Document.CaretPosition.SetPosition(radRichTextBox.Document.CaretPosition.Location); radRichTextBox.Focus();
Observed: The caret is positioned after "eitgh:"
Expected: The caret shouldn't change its position
Improve measure and arrange of a document and its child document elements respectively - Span, Paragraph, Table, Section and etc. This will also improve the import time for large documents.