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

RadRichTextBox for Description content?

1 Answer 59 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cyndie
Top achievements
Rank 1
Cyndie asked on 17 Aug 2012, 03:58 PM
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?

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 20 Aug 2012, 02:03 PM
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.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Cyndie
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or