Hi,
I have a datagrid that loads richtext as part of a celltemplate. The number of rows is < 20 however the performance is less than ideal ~5sec to render.
I have narrowed it down to the constructor of the RadRichTextBox. The RtfDataProvider does not seem to be degrading the performance.
I do not require the ribbon or spellcheck etc in this instance of the control however elsewhere in the application they have a full editor so any solution cannot be global.
Any ideas on how to improve speed?
Cheers
Jeremy
<data:DataGridTemplateColumn Header="Commentary" Width="500">
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel>
<!--<telerik1:RtfDataProvider x:Name="rtfDataProvider"
Rtf="{Binding Path=ValueText, Mode=TwoWay}"
RichTextBox="{Binding ElementName=radRichTextBox}" />-->
<telerik1:RadRichTextBox MaxWidth="500" Height="70" Style="{StaticResource RichTextBoxReadOnly}" x:Name="radRichTextBox"/>
</StackPanel>
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
<Style x:Key="RichTextBoxReadOnly" TargetType="telerik:RadRichTextBox">
<Setter Property="IsReadOnly" Value="True"/>
<Setter Property="IsContextMenuEnabled" Value="False"/>
<Setter Property="IsImageMiniToolBarEnabled" Value="False"/>
<Setter Property="IsTrackChangesEnabled" Value="False"/>
<Setter Property="IsSpellCheckingEnabled" Value="False"/>
<Setter Property="IsEnabled" Value="True"/>
</Style>