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

Spurious ; (semi-colon) in appointment text

1 Answer 77 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 03 Jun 2011, 08:05 AM
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.

Regards

Peter

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 08 Jun 2011, 04:10 PM
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.
Tags
Scheduler and Reminder
Asked by
Peter
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or