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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to mirror the appointments of one Schedule to another?

Platform: ASP.NET Web Forms |
Control: Schedule
Tags: schedule

The following steps helps you to mirror the appointments of first Schedule into second Schedule.

Step1:  Create an ASP.NET application and include the EJWEB Schedule control in it by referring to this link.

Step2: Create a database table with the necessary fields as follows.

[SQL Table Script]


Note: You can create the table in Visual Studio itself as a local database or use SQL Server Management Studio.

Step3: Connect database to the Schedule control by using SqlDataSource ASP.NET control as shown below.



Step 4: Add the connectionString configuration to the Web.Config page as highlighted in the following code.




Note: Change the ConnectionString value based on your database connection. Here, it is mentioned as the “local database” connection string.

Step 5: Make use of the following server-side events of the Schedule control to perform the CRUD operation. Here, each event is assigned a server-side method name to be invoked at the time of a particular action.



Step 6: Render another Scheduler (depicted with the id Schedule2) in the same page as shown in the below code example.



Step 7: Make use of the server-side event Navigation in Schedule1 and assign the method name (onNavigation) to it which gets invoked on every time the scheduler date or view is navigated back and forth. Within this method, assign the current view and date range of the first Scheduler to the second Scheduler (which acts as a mirror Schedule) as shown in the below code example.



Step 8: Define the server-side methods with appropriate code blocks to connect the dataSource to both the Scheduler as shown in the below code-behind page example.



Step 9: Run the sample. Now, you can perform insert, edit, and delete operations on the schedule appointments that simultaneously reflects in the SQL database as well as in the second Scheduler (Mirror Schedule).


Sample Link: http://www.syncfusion.com/downloads/support/directtrac/154576/ze/Mirror_schedule-383007832


2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile