RadRichTextBox for Description content?

2 posts, 0 answers
  1. Cyndie
    Cyndie avatar
    114 posts
    Member since:
    Jul 2010

    Posted 17 Aug 2012 Link to this post

    I don't have much experience with Silverlight applications, so if this is possible, I'm not real sure how to go about achieving it.

    I've been able to get the ScheduleView demo application up and running using SQL Server as the data source (ScheduleView_EF_SL project)

    I'm looking for the best way for users to be able to paste supporting information into an appointment, like you can do in an Outlook appointment.  The current description field is plain text and it would be nice if they could paste in something from a Word document that might contain a formated table or HTML or some other content.  It seems like the RadRichTextBox might be a possibility (if I understand its function correctly), but how would I store that content in SQL and then display the content when the created appointment is viewed?

  2. Yana
    Yana avatar
    5037 posts

    Posted 20 Aug 2012 Link to this post

    Hello Cyndie,

    First, you cannot copy/paste formatted text in Silverlight - the clipboard is limited to access plain text only.
    Anyway, if you still need to add formatting options for the "Description" field in EditAppointmentDialog, you can use RadRichTextBox control.  In combination with HtmlDataProvider, it will return the entered text in HTML format, which you should be able to save in the database without a problem.

    In order to display the Description, you should customize the AppointmentItemContentTemplate and add again RadRichTextBox in order to render the HTML.

    I have attached an example showing the described approach, please download it and give it a try.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top