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

To generate Schedule based upon a view in SQL Server

Platform: LightSwitch HTML |
Control: Schedule |
.NET Framework: 4.5
Tags: schedule

To generate Scheduler from the Views of SQL Server, refer to the below step-by-step procedure.

1)Create a new View from the already existing tables in SQL Server by using the below depicted code.

Create view ScheduleView AS select scheduler.CalendarID, scheduler.Subject,scheduler.StartTime, scheduler.EndTime as EndTime,scheduler.AllDay, scheduler.Recurrence,scheduler.RecurrenceRule, scheduler.StaffID,scheduler.JobID,scheduler.Comments from StaffCalendar scheduler Inner Join Staff staff on scheduler.StaffID=staff.StaffID Inner Join Job job on scheduler.JobID =job.JobID;

2)Create a LightSwitchHTML project and render the Schedule control in it. (Refer Here)


3)Right click the Data Source folder. Select the Database option and click Next button.


Data source folder 


4)      Now, select the path where your newly created view is present.


Select path 


5) From the listed tables and views, select the required view name and click Finish button. 


Attach data source wizard 


6)      The selected View is added under the Data Sources folder and now you can refer it wherever you want in your project just similar to the tables.



Sample Link:


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