I am investigating RadFlowDocument as a possible reporting tool. I can load a existing document and add content but I can`t find a way to insert my content at the end of the document. What is the best way to navigate a document with RadFlowDocumentEditor?
Thanks, Dan
2 Answers, 1 is accepted
0
Tanya
Telerik team
answered on 03 Apr 2015, 03:25 PM
Hi Daniel,
The RadFlowDocumentEditor in fact does not support navigation, so it wouldn't be able to add text in the middle of a span for example. The editor maintains an internal position inside the document, which points either inside a paragraph (to an inline) or directly after the end of a table element. In order to change the position in the document you could use some of the RadFlowDocumentEditor's methods, which are listed in this help article.
To insert content at the end of the document, you could find the last InlineBase element with the generic EnumerateChildrentOfType method and move the position using MoveToInlineEnd():