New lines in appointment subject

3 posts, 1 answers
  1. Adam Nelson
    Adam Nelson avatar
    50 posts
    Member since:
    Mar 2008

    Posted 13 Mar 2008 Link to this post

    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. Answer
    Peter avatar
    6637 posts

    Posted 14 Mar 2008 Link to this post

    Hello Adam,

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

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

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 14 Mar 2008 Link to this post


    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.

Back to Top