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

Appointment color change

3 Answers 110 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Teja
Top achievements
Rank 1
Teja asked on 01 Mar 2011, 08:36 PM
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.

3 Answers, 1 is accepted

Sort by
0
André
Top achievements
Rank 1
answered on 01 Mar 2011, 09:35 PM

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.

0
Teja
Top achievements
Rank 1
answered on 01 Mar 2011, 09:45 PM
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

0
Peter
Telerik team
answered on 02 Mar 2011, 02:23 PM
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!
Tags
Scheduler
Asked by
Teja
Top achievements
Rank 1
Answers by
André
Top achievements
Rank 1
Teja
Top achievements
Rank 1
Peter
Telerik team
Share this question
or