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

[Solved] Fixed width Appointments

1 Answer 107 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
nono
Top achievements
Rank 1
nono asked on 09 Dec 2009, 03:24 PM
I am working on a hack to allow for fixed width appointments, but i am having problems determining for a resource the max number of appointments that are side by side. So here is the way I am trying to get it to work.

I am using the ColumnWidth property set to 110 so i want each appointment to be approximently 100px. Now if I can determin the max number of appointments that are side by side for a resource, I can, with jquery i am planning on over writing the percentages in the header and content with fixed widths based on the max number of appointments.

This should allow the appointments to stay with a % and work as normal.

I have seen quite a bit of complaining on here about this so if you have a better solution please let me know.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Dec 2009, 08:38 AM
Hello,

I wonder if you can use TimeSlotCreated to get the appoitments count. In TimeSlotCreated you can also cycly through the appointments for that particular time slot and set their CssClass or any other property.

protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
   {
       //e.TimeSlot.Appointments.Count
       //foreach (Appointment a in e.TimeSlot.Appointments)
       //{
       //    a.CssClass = "CustomClassForCurrentTimeSlot";
       //}
   }

Regards,
Peter
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
Asked by
nono
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or