Design Time Text Not Displaying

2 posts, 0 answers
  1. Stephen
    Stephen avatar
    5 posts
    Member since:
    Sep 2011

    Posted 29 Oct 2012 Link to this post

    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?
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 01 Nov 2012 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top