We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to dynamically add/remove the resources in the schedule control?

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:

http://mvc.syncfusion.com/demos/web/schedule/multipleresource

Help document Link:

http://help.syncfusion.com/aspnetmvc/schedule/resources

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,

[CSHTML]

 

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.

[JavaScript]

 

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.

Sample Link:

http://www.syncfusion.com/downloads/support/directtrac/general/ze/ScheduleSample-235790737.zip

 

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
5550 11/04/2015 11/04/2015 ASP.NET MVC Schedule 4.5
Did you find this information helpful?
Comments
Peter Wakabi Waiswa Nov 14, 2017

I am conversant with ASP.NET Forms. Can you provide me with a version of this sample for ASP.NET web forms?


Thanks


Peter

Reply
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon