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

Control Appointment Width

3 Answers 102 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 12 Sep 2010, 01:31 AM
When I create an appointment it does not take up the entire width of the containing cell. Is there anyway I can change this? Thanks!

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 15 Sep 2010, 02:46 PM
Hi Derek,

The first requirement cannot be accomplished without extensive javascript coding or overwriting RadScheduler's rendering. The reason for this is that the appointment's width is set dynamically via javascript in percents (90% for a single appointment in a time slot, 45% for two appointments in a time slot and the second one with left:45%, etc.) So it would be difficult to calculate the width and left attribute for each appointment since it will vary based on the total number of appointments for a give slot. If you know for sure that you will have only one appointment per time slot, then you can just overwrite the css style like this:

.rsApt 
  
    
  
        width: 98%!important;     
  
    }



Greetings,
Peter
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
0
Shane Woodruff
Top achievements
Rank 1
answered on 04 Nov 2010, 05:12 PM

Can you tell me why this code give me an appointment width of 0% in monthly view? I'm not using any CSS.

Thanks.

<telerik:RadScheduler runat="server" ID="rsSchedule" DataSourceID="odsScheduleItems" DataKeyField="ScheduleItemID" DataStartField="ScheduleItemStartDate" DataEndField="ScheduleItemEndDate"
     DataSubjectField="ScheduleItemSubject" SelectedView="MonthView" AppointmentStyleMode="Auto">
   </telerik:RadScheduler>
0
Peter
Telerik team
answered on 05 Nov 2010, 06:24 PM
Hi Shane,

This code is not enough to determine the cause of the problem. Please, elaborate on your implementation and if possible send us a live url for testing.

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