Spurious ; (semi-colon) in appointment text

2 posts, 1 answers
  1. Peter
    Peter avatar
    14 posts
    Member since:
    Apr 2009

    Posted 03 Jun 2011 Link to this post

    I am creating appointments on the fly from a database and I noticed that some of the appointments had a ';' character added to the end of the summary text. The appointment has some formatting done in the AppointmentFormatting event but the summary never contains a ';' either in the appointment or the appointmentelement objects.

    After further investigation, the ';' only appears on shorter appointments (see attached image), all the appointments in the example have an identical Location and Summary but the shorter appointments appear with a ';', the longer ones do not.

    The AppointmentTitleFormat is set to "{3}{2}" but it seems to occur regardless of the format.

    Has anybody got any ideas as to what is going on, it has been driving me nuts trying to find out and fix it.


  2. Answer
    Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 08 Jun 2011 Link to this post

    Hello Peter,

    In regards to your question, this semicolon stands for separating the appointment's subject and location strings. It will only appear when they are put on the same line and when the appointment's Location field is not empty. In order to remove it, you can subscribe to the AppointmentFormatting and set the TitleFormat of the appointment as follows:
    private void radScheduler1_AppointmentFormatting(object sender, SchedulerAppointmentEventArgs e)
        e.AppointmentElement.TitleFormat = "{6}" + e.AppointmentElement.AppointmentSubject + "{7} {8}{3} {4}{0:h:mm tt} - {1:h:mm tt}{5}";

    A bit off topic, I would like to remind you that your subscription package has expired, which means that you are not entitled to support services. I would highly recommend upgrading your license to the latest version in order to continue getting product updates and uninterrupted support services. Please, contact sales@telerik.com or visit your account for your upgrading options.

    I hope the provided information addresses your question. 

    Kind regards,
    Ivan Todorov
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
  3. DevCraft R3 2016 release webinar banner
Back to Top