customize empty timeslots

2 posts, 0 answers
  1. Zoinky
    Zoinky avatar
    45 posts
    Member since:
    Sep 2007

    Posted 12 Aug 2009 Link to this post

    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.

  2. Peter
    Peter avatar
    6637 posts

    Posted 14 Aug 2009 Link to this post

    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.

    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.
Back to Top