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

All Day Appointment

3 Answers 141 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Radu
Top achievements
Rank 1
Radu asked on 17 Nov 2009, 02:29 PM
Hello,

I have a problem with the All Day Appointment view.
I use the Scheduler on a page only for All Day Appointments. On Week view, if a couple appointments are distributed on visible days, they are not aligned to the top of the cell. They align to the top only for the first day of the view. The rest of appointments are shown below the last appointment of the first day of the view.
Can you please tell me how to align all of them to the top?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 20 Nov 2009, 03:38 PM
Hi Radu,

The current appointment's layout in the all day area in RadScheduler positions every new appointment to a single row. This means that you will have as many rows in the all day area as many appointments you have.

For example:

Let's have three all day appointments in three different days:

Day1                              Day2                           Day3
Appointment1            Appointment2            Appointment3

The current layout is the following:

Day1                              Day2                           Day3
Appointment1 
                                      Appointment2         
                                                                            Appointment3


Unfortunately, this logic is built-in the RadScheduler and there is no available workaround. However we will revisit this logic for the next release and the layout logic will be as expected.

If you are using only the all day area of the scheduler, I can suggest using the MonthView instead. MonthView has a property named WeekCount and you can specify the WeekCount to 1 i.e you will be able to simulate the behavior of the AllDayArea. The benefit of using the MonthView in this scenario will be that the MonthView's layout is much more advanced than the AllDayHeader's one. 

If you have any other questions, please contact me again.
 

Regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Radu
Top achievements
Rank 1
answered on 27 Nov 2009, 08:07 AM
Thank you for your idea, it worked great.
I have one small question. For an All Day Appointment I have changed the AppointmentTitleFormat to satisfy my needs, but I need to resize the cell representing the Appointment to expand on three rows, not just one.
For example: radScheduler1.AppointmentTitleFormat = "First Row:{2} \r\n  Second Row:({3}) \r\n  3rd Row:{4}";
How can this title be displayed on three separate rows?

Thank you
0
Boyko Markov
Telerik team
answered on 30 Nov 2009, 12:23 PM
Hi Radu,

1. There is no way to resize cells in RadScheduler. You can only resize the appointment elements ( vertically in the case of DayView, WeekView, WorkWeeView and horizontally in the case of MonthView)

2. The AppointmentTitleFormat property specifies the text formatting of the element which visually represents an Appointment. For example, you can change the text formatting to specify that an appointment's subject, location, start and end time are displayed in separate rows.

this.radScheduler.AppointmentTitleFormat = "{0} \n {1} \n {2} \n {3}";

Please contact me again if you need more information.     

Sincerely yours,
Boyko Markov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler and Reminder
Asked by
Radu
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Radu
Top achievements
Rank 1
Share this question
or