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

All day event title Format

1 Answer 105 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Nitin Vikraman
Top achievements
Rank 1
Nitin Vikraman asked on 28 Apr 2010, 06:28 AM

Hi,

    how to i set a different AppointmentTitleFormat for Alldayevent appointment and a normal appointment. I want to Show just AllDayEvent with "Subject" and normal appointment with "StartTime-EndTime Subject".

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 30 Apr 2010, 05:54 PM
Hello Nitin Vikraman,

As a solution, you can do the following:

1.  Subscribe to the AppointmentFormatting event of RadScheduler
2.  In the event handler, set the ui appointment's TitleFormat property.

if (e.Appointment.Duration.TotalDays >= 1)
{
    e.AppointmentElement.TitleFormat = "{2} {3}";
}
else
{
    e.AppointmentElement.TitleFormat = this.radScheduler.AppointmentTitleFormat;
}

I hope this helps.

Greetings,
Boyko Markov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler and Reminder
Asked by
Nitin Vikraman
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or