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

RichTextBox Paging

1 Answer 76 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Shane Woodward
Top achievements
Rank 1
Shane Woodward asked on 25 May 2011, 04:36 AM
Hi, We are using a RadRichTextBox control to load a rtf document which we fill with data from the database. It works 100%. When viewing the document within the RichTextBox, I want to implement buttons for page navigation. I looked at your sample for doing paging, but it only uses the RadRichTextPageView with the ViewManager. I want to keep the RichTextBox control to do the paging. I could not find a page changed or page index kind of properties. How wil I have to implement paging?

Regards

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 30 May 2011, 05:41 PM
Hello Shane Woodward,

RadRichTextBox does not have the same navigation pattern that RadRichTextPageView has. You can, however, implement the navigation to a page just as easily:

SizeF pageSize = this.editor.Document.DefaultPageLayoutSettings.Size;
this.editor.ScrollToVerticalOffset((pageSize.Height + 20) * pageNumber);


I hope this helps.


Kind regards,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Shane Woodward
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or