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

Comparing Appointments to Timeslots

9 Answers 78 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Peter Briggs
Top achievements
Rank 1
Peter Briggs asked on 18 Mar 2010, 05:25 PM
I am trying to load 2 types of appointments: plan and schedule. The plan I am showing on the grid as colored time slots (background cells) while the schedule I am showing as regular appointments (blocks). I need to change the color of the time slots (background cells) depending on where the schedule (appointment blocks) is or is not. For example if the plan is from 2-4 than those rows are yellow. If I add an appointment from 2 to 6, then 4 to 6 now needs to be red.
Or if I add an appointment from 2-4 then no color is needed for the timeslots.

I am currently using the TimeSlotCreated function but TimeSlot only returns a Date, no time, while an Appointment returns the Date and Time.

Can anyone assist?

9 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Mar 2010, 05:33 PM
Hello Peter,

I am not sure what exactly you need to achieve, but in TimeSlotCreated you can access both Start and End time of the current time slot. You can also check if a timeslot has appointments or not:

protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
   {
       //e.TimeSlot.Start;
       //e.TimeSlot.End;
       //if(e.TimeSlot.Appointments.Count > 0)
   }

Let me know if I am missing something.


Kind regards,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Peter Briggs
Top achievements
Rank 1
answered on 19 Mar 2010, 05:36 PM
When I access those values in code, e.TimeSlot.Start and e.TimeSlot.End are both date values...there is no TIME.

Ex. e.TimeSlot.Start = 3/15/2010
    e.TimeSlot.End = 3/21/2010

I need the time also 08:00:00 AM
0
Peter
Telerik team
answered on 19 Mar 2010, 05:57 PM
Hi Peter,

This can happen if your RadScheduler is in Month or Timeline view and it is expected. For timeline view you can set TimelineView-SlotDuration="01:00:00" (one hour) for example, and then you will have distinct time values for Start and End.


Greetings,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Peter Briggs
Top achievements
Rank 1
answered on 19 Mar 2010, 06:01 PM
I am actually in Week view.
0
Peter
Telerik team
answered on 22 Mar 2010, 03:44 PM
Hi Peter,

For week view you will get a date, instead of specific time only if you click on the all day-row. In case you experience this problem for regular time slots, please send us a working demo of the issue via a support ticket.  

Regards,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Peter Briggs
Top achievements
Rank 1
answered on 22 Mar 2010, 04:32 PM
I am actually hiding the All Day Row. This is occurring on regular time slots.
0
Peter
Telerik team
answered on 23 Mar 2010, 11:47 AM
Hi Peter,

Okay, then this is unusual and we will need a working sample of the issue. Please, open a support ticket and send us a demo.


Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Peter Briggs
Top achievements
Rank 1
answered on 23 Mar 2010, 02:44 PM
I did...did you get it?
0
Peter
Telerik team
answered on 23 Mar 2010, 03:20 PM

Okay, I found your support ticket with the attached sample. We will look into it shortly.

All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Scheduler
Asked by
Peter Briggs
Top achievements
Rank 1
Answers by
Peter
Telerik team
Peter Briggs
Top achievements
Rank 1
Share this question
or