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

[Solved] Resource availablity

2 Answers 94 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
salman
Top achievements
Rank 1
salman asked on 05 Jun 2008, 05:12 PM
Hi,

I have 3 resource type as roomA, roomB, and roomC and 2 resource type as board1 and board2. 

roomA is reserved for 9am to 11am with board1 resource type.
now when I reserve roomB or roomC between 9am to 11am for the same date, I want to hide the resource reserved by roomA (which is board1) and display only board2 as an avilable resource for that period of time.

in other words, I'm looking to find out how can get the avilable resources only for the availabe time slots in the schedular.

Any help or suggestion would be appereciated.

Thank you,
-Sal

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 06 Jun 2008, 10:42 AM
Hi Sal,

Please, review the Resource Availability and Defining Resources examples which will help you get started.

If you have any other questions, please feel free to contact us.


Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
salman
Top achievements
Rank 1
answered on 06 Jun 2008, 07:59 PM
Thanks for the suggestion.  I got so far what i was looking for.

Here is the part of the solution

private void RemoveUsedResourcesFromTimeSlot(DateTime start, DateTime end)

{

foreach (Appointment app in RadScheduler1.Appointments.GetAppointmentsInRange(start, end))

{

foreach (Resource res in app.Resources)

{

if (res.Type == "Resource")

{

res.Available = UsedResources.Remove(res);

}

}

}

}

Thank you,
-Sal

Tags
Scheduler
Asked by
salman
Top achievements
Rank 1
Answers by
Peter
Telerik team
salman
Top achievements
Rank 1
Share this question
or