The following steps shows how to add/remove the resources to the schedule control based on the check box value we select.
Step 1: Create a Schedule sample with Multiple Resources by referring the following links,
Online Sample Link:
Help document Link:
Step 2: Create the required number of check boxes in your sample page each denoting a specific resource, so that selecting/deselecting it will automatically add/remove the appropriate resources in the schedule control. Refer the following code example to add the check boxes,
Step 3: Bind the client-side change event to the checkboxes, so that it triggers whenever the state of the checkbox gets changed. Add the following code example within the change method to add/remove the resources to the schedule control.
Step 4: Now run the sample. Check/Uncheck the resources check box, so that the related resources will get added/removed in the schedule control as shown in the below screenshots,
Figure 1: Scheduler displaying all the resources.
Figure 2: Scheduler displaying 2 resources (Nancy & Michael)
Figure 3: Steven resource check box is checked additionally, so that Steven added to the scheduler.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||.NET Framework:|