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.
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.