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

RichTextBox UI responsiveness

12 Answers 197 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Tobania
Top achievements
Rank 1
Tobania asked on 24 Aug 2010, 10:37 AM
I'm having some issues with the UI responsiveness of the RichTextBox when typing text, it responds rather slow.
I then checked the demo on this site, to see if it had something to do with my code, but the issue is the same in the demo.

Is this something that is going to be fixed/improved in future releases? 

12 Answers, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 25 Aug 2010, 10:09 AM
Hi Sodi We,

We are constantly working on improving the performance of RadRichTextBox. One of our main goals is to be able to have smooth experience even with large documents. On the other hand, we are also rapidly adding many more features our customers requested and this sometimes comes with a little performance penalty. We will though profile the components and further optimize the overall performance in the next versions.

In your particular case, can you please specify what kind of document you are loading in RadRichTextBox and how many pages there are when you experience the slow response? We would also appreciate if you can tell us the metrics of the PC you are using to perform editing.

Sincerely yours,
Mike
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
Tobania
Top achievements
Rank 1
answered on 25 Aug 2010, 10:23 AM
maybe the easiest scenario is typing in some text in the demo on this site. It doesn't feel smooth on this machine, it feels the typing has a slight delay before being output to the screen.

The pc I tested it on is a Hp laptop
Intel Core2 T7600 @2.33GHz
4Gb RAM
64-bit Windows 7 Enterprise
7200 rpm HD
20 MBits broadband connection
0
Mike
Telerik team
answered on 26 Aug 2010, 12:51 PM
Hi Sodi We,

Thank you for getting back to us. We will push some more in this direction and try to optimize the overall performance in the next versions. Let us know if we can help further.

Kind regards,
Mike
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
Thomas Oates
Top achievements
Rank 1
answered on 15 Dec 2010, 10:22 PM
Any update on this?
We are not loading any document just have the following in the xaml and it takes 2+ seconds to load the view.

<telerik:RadRichTextBox x:Name="Editor"

Background="White"

HorizontalAlignment="Left"

Width="600"

Height="100"

Margin="8,0,8,0">

</telerik:RadRichTextBox>

0
Mike
Telerik team
answered on 20 Dec 2010, 11:38 AM
Hello Bryan Amaral,

Can you please elaborate a bit more on this issue? We did a very simple test of loading time of RadRichTextBox and it is no more than 0.12 secs the first time it loads and 0.001 secs about each new instance after that. Please find the test application attached.

For your information, the previous messages in the thread concern the responsiveness of RadRichTextBox related to speed of typing text and as we promised in Q3 text input performance is much better and will be even more optimized in the the upcomming Q3 Sp1.

Kind regards,
Mike
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Trude
Top achievements
Rank 2
answered on 07 Apr 2011, 11:54 AM
I too find the load time on the richtextbox a tad slow. I ran your project on my development machine (it got 8 gigs of RAM, quad-core 3.2 GHz, only VS2010 was running) - it's much slower here - around 0.5 seconds on first load and < 0.1 seconds on subsequent loads. In my real project where I use the ribbon, rulers etc. the load time is nearly 1 second!

1. Is there a way to speed this up? 0.1 seconds on first load in your environment sounds good.
2. I thought about making a splash screen/dialoge while it loads; what's the best approach for this?
0
Trude
Top achievements
Rank 2
answered on 07 Apr 2011, 01:08 PM
I updated the RichTextBox.Xaml file in the project to this:
<Grid x:Name="LayoutRoot" Background="White">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
        <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <telerik:RadRichTextBoxRibbonUI DataContext="{Binding ElementName=radRichTextBox1}" Name="RadRichTextBoxRibbonUI1"/>
    <telerik:DocumentRuler Grid.Row="1" AssociatedRichTextBox="{Binding ElementName=radRichTextBox1, Mode=OneTime}"/>
    <telerik:RadRichTextBox HorizontalAlignment="Left" Margin="12,12,0,0" Name="radRichTextBox1" VerticalAlignment="Top" BorderBrush="SlateBlue" Grid.Row="1" BorderThickness="1" Height="276" Width="376" />
    <telerik:RadRichTextBoxStatusBar Grid.Row="2" AssociatedRichTextBox="{Binding ElementName=radRichTextBox1, Mode=OneTime}"/>
</Grid>

Launch time on my dev-box varies from 0.8 to 1.5 seconds (even with debugger off).


0
Alex
Telerik team
answered on 12 Apr 2011, 04:46 PM
Hi Jorn,

There is indeed some performance hit when RibbonUI, StatusBar and Ruler controls are used. The problem is that there are some initializations that take place the first time the controls are loaded. Any subsequent loads of the controls are much faster. 

We are currently looking for ways to reduce the initial load time of the RadRichTextBox. Also the RadRibbon (on which the RadRibbonBar is based) will be heavily refactored for the next release which will probably speed things up even more.

If you have any other questions, do not hesitate to contact us again.

Best wishes,
Alex
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
Mike
Top achievements
Rank 1
answered on 16 Jun 2011, 07:28 PM
Has this problem been addressed?  We are having issues with this currently, with it taking up to 4 full seconds to load in some instances.  Only on the first load, as Alex pointed out, but still.  We are hoping to use this control heavily, and a 4 second load is terrible.  We are using the RadRibbonBar and RadRichTextBox.  Is there anything I can do to improve this?
0
Stephen
Top achievements
Rank 1
answered on 16 Jun 2011, 10:45 PM
I can accept the initial load up times particularly with a busy ribbon bar control, but what I've struggled with is the performance of the control when spell checking is turned on.  I know there is an option to turn it off in code and the UI but if you are going to focus your performance tweaks anywhere I personally would really like it to be in this area. 

Lexical parsing is no easy thing so I'm not surprised at the performance issues, but clients on particularly low end machines can struggle to have a responsive experience when spell checking is turned on.  (And this isn't on what I would consider low end machines)

Thanks,

Stephen
0
Vesko
Telerik team
answered on 22 Jun 2011, 09:40 AM
Hi Stephen,

We are always glad to have use cases helping us to improve the performance of you product.
If you can take a look at the demo on our web site:
http://demos.telerik.com/silverlight/#RichTextBox/MSWord
the performance does not seem affected so noticeable when spell-checking is toggled. This is because we designed RadRichTextBox to spell-check only the words visible on the screen.

That's why we believe the performance problem you experience might be related to the specific case. It will be very helpful if you open a support ticket and send us an example test scenario or at least document in which you experience the performance problem. We will look deeply in it and see whether and how the performance could be improved.

All the best,
Vesko
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
swati
Top achievements
Rank 1
answered on 21 Dec 2013, 09:10 AM
Hi,

I'm using RadRichTextBox bounded with datatable. When I try to change font or delete some characters, it takes too long to load. Please provide some way to improve performance when these small tasks are carried out.

Thanks
Swati
Tags
RichTextBox
Asked by
Tobania
Top achievements
Rank 1
Answers by
Mike
Telerik team
Tobania
Top achievements
Rank 1
Thomas Oates
Top achievements
Rank 1
Trude
Top achievements
Rank 2
Alex
Telerik team
Mike
Top achievements
Rank 1
Stephen
Top achievements
Rank 1
Vesko
Telerik team
swati
Top achievements
Rank 1
Share this question
or