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

Design Time Text Not Displaying

1 Answer 64 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 29 Oct 2012, 05:13 PM
I feel like this is something obvious that I am overlooking.  I want to insert a bulleted list into a richtextbox at design time.  I use the MarkupEditor to get the list in and it displays the text with the proper formatting in the Text property but nothing shows up in the richtextbox itself.  The help document states that design time text can be inserted and made read only.  What am I missing here?

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 01 Nov 2012, 01:08 PM
Hi Stephen,

Thank you for writing.

RadRichTextBox does not support this functionality and cannot init its content using the Text property in design-time. I logged this feature request in our Public Issue Tracking System. The content setup by Text property with html support in design-time will be added in one of the next our releases. Currently, you can load the content manually. Here is a example:
protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
 
    HtmlFormatProvider provider = new HtmlFormatProvider();
    radRichTextBox1.Document = provider.Import(radRichTextBox1.Text);
}

Please view the result in the attached screenshots.

Thank you for your time and cooperation.

Your Telerik points have been updated. 

Kind regards,
Julian Benkov
the Telerik team
Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Stephen
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or