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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to pass the Collection of Object values to the Schedule control DataSource from the code behind page in ASP.NET?

You can pass the collection objects to the Schedule control in code behind page.

The following steps help you to pass the collection objects to the Schedule control DataSource from the Code behind page of the ASP.NET application.

Step 1: Refer to the online KB documentation from the following location and add the EJWEB Schedule control to the ASP.NET application.

Step 2: Add the basic schedule rendering code in the design page as shown below


Step 3: Now, add the following codes to define various properties of the Schedule control in the code behind page.




Step 4: Create a class with the required fields to create the object collection. Refer to the following code example to create the class.



Step 5: Define the “GetRecords” method and add the schedule appointment object collection within it. Refer the following code example to add the appointment collection (You can define any number of appointment objects within this method).




Step 6: Run the sample and the Schedule control renders as follows.

Figure 1: Schedule control

Sample links

C# Sample


VB Sample


Article ID: Published Date: Last Revised Date: Platform: Control:
4039 02/16/2015 08/26/2015 ASP.NET Web Forms Schedule
Did you find this information helpful?
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