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

Multiple resources availability in relevance with a vacations schedule

1 Answer 16 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 28 Jun 2012, 12:03 PM
Hello,

i' m developing a web application with multiple resources (Employees) using radscheduler. I have 4 tables in my database (one for creatiing employees work schedule, one for connecting employees with their work schedule, one for creating vacations schedule and one for connecting employees with their vacations schedule). So i have 2 radschedulers with multiple resources (one for creating work schedule and one for creating vacations schedule) and 2 database providers (one for each radscheduler). How could i implement when an employee has a vacation for a period of time, this employee will not be available as a resource to work radscheduler for this specific period of time (please note that i' m using recurrence rules)? 

Thank you very much. 

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 03 Jul 2012, 09:03 AM
Hi George, 

 
You can use the onClientFormCrated event as in the code below and remove one of the multiple resourced check boxes if it is not available:

function OnClientFormCreated(sender, args) {
           $telerik.$(".rsCheckBoxList li").each(function myfunction(e) {
               if (this.textContent == "Alex") {
                   $telerik.$(this).hide();
               }
           });
       }

Hope this will be helpful.

Kind regards,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
George
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or