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

Showing Carrage returns in the Appointment?

2 Answers 114 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
JK
Top achievements
Rank 1
JK asked on 28 Sep 2007, 11:45 AM
Sorry, hammering the forum today ;)

I have noticed that when you are creating a new appointment (in advanced mode) you can put in carrage returns and display fine when editing the appointment, but these dont display on the appoitnment itself unless you hover over the appointment with the mouse.

Can the carrage returns be shown on the appointment without needing to hover over it?

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 28 Sep 2007, 03:01 PM
Hello JK,

The carriage returns are preserved in the Appointment.Subject property, but the default rendering does not display them. You can try to create a custom appointment template and use the pre tag to render the new lines like this:

<telerik:RadScheduler runat="server" ID="RadScheduler1" 
    Width="750px" Skin="Default" EnableEmbeddedSkins="True" 
    SelectedDate="2007-03-30" DayStartTime="08:00:00" DayEndTime="18:00:00"                   
    DataSourceID="AppointmentsDataSource" DataKeyField="ID" DataSubjectField="Subject" 
    DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" 
    DataRecurrenceParentKeyField="RecurrenceParentID" TimeZoneOffset="03:00:00"
    <AppointmentTemplate> 
        <pre style="font-family: Verdana, Sans-Serif;"><%# Eval("Subject") %></pre
    </AppointmentTemplate> 
</telerik:RadScheduler> 
 


Regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
JK
Top achievements
Rank 1
answered on 28 Sep 2007, 03:04 PM
Thank You So MUCH!!!!  Worked a treat!
Tags
Scheduler
Asked by
JK
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
JK
Top achievements
Rank 1
Share this question
or