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

customize empty timeslots

1 Answer 88 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Zoinky
Top achievements
Rank 1
Zoinky asked on 12 Aug 2009, 08:49 PM
how do i customize empty timeslots in timeline view?
I tried using TimeSlotCreated, but that also fires for timeslots that have apointments,
I tried putting the following in,

       if(e.TimeSlot.Appointments.Count ==0)
        {
            e.TimeSlot.Control.Controls.Add(new LiteralControl("test"));
        }
but this doesnt work for appointments that span more than one timeslot.
I am trying to simply have something like "click here to add" as a mask text for empty slots for users to know that they should click the timeslot in order to be able to register a appointment.

Another question is, is there a way to prevent certain appointments from being moved ?
I guess I can use custom attributes and combination of different events on client side to achieve this, but maybe there is simple way of just something on appointmentdatabound that certain appointments shoudlnt be moveable.




1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Aug 2009, 09:19 AM
Hi Zoinky,

This is a limitation of RadScheduler in this scenario. There isn't a way to distinguish time slots that have a multiday appontment (except the time slot on which the appointment originates) from other timeslots neither server sider nor client side.

You could set AllowEdit for specific appointments in AppointmentDataBound, but I am not sure if this is what you need. If not, then you should use the approach you have already thought of - assign custom attributes and cancel OnClientAppointmentMoving.



Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Zoinky
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or