To generate Schedule based upon a view in SQL Server
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.
4) Now, select the path where your newly created view is present.
5) From the listed tables and views, select the required view name and click Finish button.
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:
https://www.syncfusion.com/downloads/support/directtrac/150772/ze/CalendarTest-933843674