This is a migrated thread and some comments may be shown as answers.

[Solved] RichTextBox Paging

4 Answers 198 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
rick adams
Top achievements
Rank 2
rick adams asked on 15 Nov 2010, 09:07 PM
I would like to be able to control the RichTextBox in terms of a paged view. How can I select a specific page and have it displayed. I also want that to be the only page displayed and not show either the previous or next page when the LayoutMode is paged

4 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 16 Nov 2010, 02:07 PM
Hi Rick Adams,

This is possible, you can look at the source code of RadBook integration example, where this is achieved with the help of  RadRichTextPageView, DocumentViewManager and RadDocumentBindingSource classes.In this example, the RadRichTextPageView, is used to display a single page in the context of RadBook, but you can use it directly in your application to show a specific page in the document.

Don't hesitate to contact us if you have other questions.

Kind regards,
Boby
the Telerik team
See What's New in RadControls for Silverlight in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
0
rick adams
Top achievements
Rank 2
answered on 17 Nov 2010, 06:02 PM
I looked at the RadBook integration example but it is not entirely clear to me how the paging is handled. Can you give me additional detail in regards to the DocumentViewManager as to how this is achieved or point me to an additional example?

Thanks
0
rick adams
Top achievements
Rank 2
answered on 17 Nov 2010, 10:19 PM
on further investigation the DocumentViewManager is part of the RadBook. Is there any way to get a single page view using just the RadRichTextBox.

Thanks

Rick Adams
0
Boby
Telerik team
answered on 18 Nov 2010, 05:07 PM
Hi Rick Adams,
DocumentViewManager is part of the Telerik.Windows.Documents - the main assembly of RadRichTextBox.
The page RadRichTextPageView is showing is controlled by the PageIndex property.
I prepared you sample application (attached) that demonstrates loading a single page of the document and navigation to the next/previous page.

Don't hesitate to contact us if you have other questions.

Regards,
Boby
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
RichTextBox
Asked by
rick adams
Top achievements
Rank 2
Answers by
Boby
Telerik team
rick adams
Top achievements
Rank 2
Share this question
or