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

RichTextBox disappears

1 Answer 48 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Bastian Kraehmer
Top achievements
Rank 1
Bastian Kraehmer asked on 24 Nov 2010, 11:32 AM
Hello,

if you load html - content into the RichTextBox the whole application disappears or blanks after 1 or 2 seconds.
This only seems to happen if you load alot of code, 'cause if I try the same with small code examples everything is fine.

I load it like this:

var provider = new HtmlFormatProvider();
var content = ".....";
_radDocument = provider.Import(content);
Editor.Document = _radDocument;

Any help or suggestion is appreciated.

Bastian Kraehmer

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 25 Nov 2010, 09:21 AM
Hello Bastian Kraehmer,

The way you are loading the content of the document is just right.
As for the performance, loading large files in RadRichTextBox naturally cannot happen in the blink of an eye, because the HTML needs to be parsed and created a number of objects to represent it in memory before being shown on screen.
If you think that your (sample) HTML file is being loaded unreasonably slowly, you can send it over  for us to take a look at.

Sincerely yours,
Iva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
RichTextBox
Asked by
Bastian Kraehmer
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or