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

RadRichTextBox Performance issue

2 Answers 44 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 01 Mar 2016, 06:18 AM

Hello,

I am working on an application where I am using RadRichTextBox to show some document in the application. Document is binded in the form of xml to this control.

<telerik:RadRichTextBox  x:Name="txtMsgBody" Grid.Row="1" Grid.Column="0" DataContext="{Binding STATIONARYXML}"  MinHeight="620" MaxWidth="1200"   VerticalAlignment="Top" ScrollViewer.HorizontalScrollBarVisibility="Hidden" SelectiveScrollingGrid.SelectiveScrollingOrientation="None" ScrollViewer.VerticalScrollBarVisibility="Visible"/>

This document is a word like document maximum of 1.5 to 2 pages. It contains some paragraphs, table and 1-2 small images of 2-3 KB in size. I am facing performance issue in the loading of this document. Document is of approx 20KB (when converted into MS word and saved on HD) and on 2GB RAM machine & 512 KB transfer rate it takes 11 seconds to open the document among which 3.5 to 4 seconds are on service side while rest it takes to load that document in control. I have already switched off the non required features like spell checker or image editor etc and also using only XamlFormatProvider in my TypeCatalog. I need to bring this transaction under 7 seconds. Your help is required in this case.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Muhammad
Top achievements
Rank 1
answered on 02 Mar 2016, 07:46 AM
I have some sample xml of the document which i am using, please let me know how can i share it with you.
0
Tanya
Telerik team
answered on 03 Mar 2016, 02:38 PM
Hi Muhammad,

From the XAML code, I could suggest that the RadRichTextBox is placed inside a ScrollViewer. As explained in the UI Virtualization article, this could lead to performance issues. RadRichTextBox is measured in Infinity and its ui virtualization is disabled, which forces the control to load the whole document at once.

The other tips we could suggest for decreasing the initial loading time are listed in the MEF article. You could take a look at it just to verify that all the tips are applied in your project.

The public forms doesn't allow attachments other than images. If you would like, you could contact us through our support ticketing system. There you can attach archive files.

Hope this information is helpful.

Regards,
Tanya
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
RichTextBox
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Muhammad
Top achievements
Rank 1
Tanya
Telerik team
Share this question
or