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

UI Virtualization in RichTextBox

3 Answers 110 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
trier
Top achievements
Rank 1
trier asked on 01 Sep 2010, 01:14 PM
Hi

I am new to telerik and have some questions about the implementation of the RadRichTextBox. How does the UI virtualizaton work in this context? Do we need to do any special coding/ add any special tags for the textbox to display only part of the large document? Does the RadRichtextbox work for opening and editing xml files? If so, could you please give an example or point me to the related links or documents?

Thank you,
TT

3 Answers, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 01 Sep 2010, 03:59 PM
Hello trier,

UI virtualization works for RadRichTextBox as-is. No additional configuration or any other action is required: UI elements are created only for the parts of the document that are currently inside the viewport of the RadRichTextBox.
As for the XML files - could you please elaborate somewhat more on your specific use case so I can guide you to the relevant information.
Don't hesitate to contact us if we can be of any further assistance.

Kind regards,
Ivailo
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
0
trier
Top achievements
Rank 1
answered on 01 Sep 2010, 04:47 PM
Hi Ivailo

Thank you for the prompt reply. I have huge xml files which I would have to view and edit ( 10MB + ). I am trying to create an editor for the xml. The ribbon bar would have menu items that I define. I have been trying to use RadRichtextbox for the text area of the editor and have added  a menu bar with a bunch of menu items, one being an option to opening the file in the textarea. My question is, while opening the file, would just setting the content of the textbox to the contents of the file make use of virtualization or would I need to specify how much needs to be streamed at a time or do anything else? 

Thanks,
TT
0
Ivailo Karamanolev
Telerik team
answered on 02 Sep 2010, 07:46 AM
Hi trier,

UI virtualization is enabled by default, however RadRichTextBox is designed to have the entire document loaded in memory in order to operate. Internally, we test it with documents of up to 500 pages, however 10MB of text will produce more than 4000, at which point the performance drops significantly. This said, unfortunately, RadRichTextBox currently can't offer editing experience for text documents larger than about 2MB. As a workaround, I'd suggest you try to split the XML file in logical parts or otherwise try to reduce the sheer volume of data to be loaded at a time.
Please get back to us if you have any other questions.

Regards,
Ivailo
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
trier
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
trier
Top achievements
Rank 1
Share this question
or