Insert Image into RadRichTextBox Control

6 posts, 0 answers
  1. Troy Clemons
    Troy Clemons avatar
    69 posts
    Member since:
    Apr 2010

    Posted 30 Apr 2010 Link to this post

    I am trying to insert an image into the RadRichTextBox Control, but it seems
    I can only find a way to setText only.

    Thanks Troy
  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 30 Apr 2010 Link to this post

    Hello Troy Clemons,

    We are very glad you decided to give a spin of our new control. Currently RadRichTextBox odes not support inserting images or any other kind of elements other than formatted text. We are though working at this feature as we speak and they will be available in the first official version of the product in Q2 (mid July) as well as in the beta version that should be released several weeks before Q2.

    Sincerely yours,
    Mike
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Troy Clemons
    Troy Clemons avatar
    69 posts
    Member since:
    Apr 2010

    Posted 30 Apr 2010 Link to this post

    Thank youf or the quick response on this matter.

    I am glad to hear that images will be supported and soon.

    So far the testing of the silverlight controls is going good, and the results are excellent.

    Thank You Troy
  5. Mike
    Admin
    Mike avatar
    640 posts

    Posted 30 Apr 2010 Link to this post

    We are very glad to her this Troy!
    We will help with whatever we can to make it easier for you during the testing period.

    Kind regards,
    Mike
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  6. David
    David avatar
    4 posts
    Member since:
    Oct 2011

    Posted 19 Nov 2011 Link to this post

    Hello has this feature been added yet? Do you have some sample code on how to do this using mvvm pattern. I am currently trying to use the XamlDataProvider, but when I paste an image in it does paste but the image is not visible. Here's a sample code
    private string xamlText;
    public string XamlText
    {
        get { return xamlText; }
        set
        {
            if (xamlText != value)
            {
                xamlText = value;
                RaisePropertyChanged("XamlText");
            }
        }
    }

    <StackPanel>
                <telerikXaml:XamlDataProvider RichTextBox="{Binding ElementName=radRich}" Xaml="{Binding Path=XamlText, Mode=TwoWay}"></telerikXaml:XamlDataProvider>
                <telerik:RadRichTextBox x:Name="radRich" />
    </StackPanel>
  7. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 23 Nov 2011 Link to this post

    Hi David,

    Inserting images can be done using the InsertPictureCommand or the methods from RadRichTextBox's API. For more information, please refer to this forum thread.
    When it comes to binding the content of the document with XamlDataProvider, you can see the demo in this forum thread.
    The only difference between WPF and Silverlight is that images cannot be pasted in Silverlight, because the clipboard supports only plain text.

    Regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner