Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Improve loading speed of richtextboxes

$
0
0
Hello Grigory,

RadRichTextBox is a complex control which exposes many features which makes it somewhat heavy. Since the control is intended as a word editor, similar to MS Word for example, it is not really targeted for cases in which you can place many instances of it on the same view. You can take a look at the Performance article to see whether some of the tips would help in your scenario, but I'm afraid there isn't much we can do to help in this case.

On the other hand, depending on the format in which you preserve the data, you could use RadRichTextBox only for the editable instance in your view and show the other rows in another control. RadRichTextBox exposes a format provider that allows converting the document to the native FlowDocument, so maybe that could fit your needs.
MsRichTextBoxXamlFormatProvider provider = new MsRichTextBoxXamlFormatProvider();
  
string content = provider.Export(this.radRichTextBox.Document);
FlowDocument flowDoc = provider.ExportToFlowDocument(this.radRichTextBox.Document);
RichTextBox box = provider.ExportToRichTextBox(this.radRichTextBox.Document);

Note that as FlowDocument lacks many of the features available in RadDocument, so it is possible to experience some loss of formatting if you choose this approach.

I hope this is useful.

Regards,
Petya
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

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>