Appointment color change

4 posts, 0 answers
  1. Teja
    Teja avatar
    15 posts
    Member since:
    Nov 2010

    Posted 01 Mar 2011 Link to this post

    Hi,
    I am using Telerik RadScheduler.

    I have a few questions to pose:

    1) In my design, the admin is given the control of setting the date and time slots which is reflected to the user. I am able to do this successfully. What I want is, 

    a) The time slots not scheduled by the admin should be reflected in black color. The user should be disabled from selecting this appointments as these are not scheduled. It should be displayed in black in day, week and month view.
    b) Appointment already completed or already finished should be displayed in red color.
    c) Available appointments for the future should be in blue color and as soon as the admin sets the schedule for a particular time it should be displayed in green and the unselected time in black.

    For example:
    lets take the example of March 23.
    Initially all the appointment slots should be in Blue.If the admin selects, 7 am to 3 pm on March 23, then the slots from 7 am to 3pm should be in green and the rest 12 am to 7 am and 3 pm to 11:59 pm should be in black and the user should be disabled from selecting these black slots.
    And soon as Mar 23 goes away, the color should be reflected Red.

    2) When a user selects an appointment, it should be reflected in the scheduler which is happening. But as soon as the user selects his appointment, his name should be reflected at the admin side. I have taken the details of the user and have his credentials.

    Looking for ward to your reply.Thank You.
  2. André
    André avatar
    15 posts
    Member since:
    Feb 2011

    Posted 01 Mar 2011 Link to this post

    I don't think it's possible to do what you want...

    Well, instead of time slot, can't you use the appointments itself?

    That is, the admin adds the appointment, then a user edits an already scheduled appointment to add his own name.

  3. Teja
    Teja avatar
    15 posts
    Member since:
    Nov 2010

    Posted 01 Mar 2011 Link to this post

    Hi,
    No since I already changed the schedule based on time slot of customizations page which is in http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx and I am able to capture the changed time slots.

    I just want to put the color to the same.

    If not, code for what you have proposed is also welcomed

  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 02 Mar 2011 Link to this post

    Hi Teja,

    a) Please, see this kb article.

    b) Please, see this forum thread.

    c) That's similar to the above. Basically, the idea is to set the BackColor property of the appoinntment conditionally in AppointmentDataBound.  


    Regards,
    Peter
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top