RadRichTextBox Performance issue

3 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    2 posts
    Member since:
    Feb 2016

    Posted 01 Mar 2016 Link to this post


    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.


  2. Muhammad
    Muhammad avatar
    2 posts
    Member since:
    Feb 2016

    Posted 02 Mar 2016 Link to this post

    I have some sample xml of the document which i am using, please let me know how can i share it with you.
  3. Tanya
    Tanya avatar
    763 posts

    Posted 03 Mar 2016 Link to this post

    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.

    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
Back to Top