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

[Solved] Determining available schedule dates for a resource

1 Answer 132 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 19 Aug 2009, 06:55 AM
Hi everyone,

How do I get the availability of  dates for a  resource let say user resource.  I only want to know the availability of their schedules and NOT their appointments.  I have tried the "RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End)" but this only returns the appointments that is being used.  What I actually intend to do is the opposite which will return the availability of dates for the users.  For example,  I want to display their available schedules for a given users to a grid.  How can I DO THIS? 

Your contribution is highly appreciated.  Thanks.

Alex

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 19 Aug 2009, 04:40 PM
Hello Alex,

I am not sure what exactly you need to achieve. If you need to get the dates of time slots with no appointments, you can handle TimeSlotCreated like this:

protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)  
    {  
        if (e.TimeSlot.Appointments.Count == 0)  
        {   
            //Add e.TimeSlot.Start to a collection of available dates  
        }  
    } 


Regards,
Peter
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.
Tags
Scheduler
Asked by
Alex
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or