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

New lines in appointment subject

2 Answers 185 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Adam Nelson
Top achievements
Rank 2
Adam Nelson asked on 13 Mar 2008, 05:27 PM
Is it possible to get new lines or breaks to show up in the calendar appointments? I've got them showing in tooltips by using \r\n but it just shows up as a space in the calendar appointment item. <br> doesnt work either as that just shows up as plaintext in both the appointment and the tooltip.

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 14 Mar 2008, 04:01 PM
Hello Adam,

Please, try wrapping the subject of the appointment in <pre> </pre> tags:

<AppointmentTemplate> 
                    <pre>  <%# Eval("Subject") %> </pre> 
                </AppointmentTemplate> 



Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Piyush Bhatt
Top achievements
Rank 2
answered on 14 Mar 2008, 07:09 PM
Adam,

The way I do it is, I have added Literal control to the AppointmentTemplate and then adding whatever HTML controls I need to the Literal control. That way, I can even add <table> <div> etc to the appointment dynamically.

The approach I have used is to put PlaceHolder in the appointment template and then dynamically add ASP controls to the place holder with values. This helps in some advance scenarios like - when I want to put Tooltip only for the part of a text in the subject etc.

-Piyush
Tags
Scheduler
Asked by
Adam Nelson
Top achievements
Rank 2
Answers by
Peter
Telerik team
Piyush Bhatt
Top achievements
Rank 2
Share this question
or