Hello Vinitha!
I have downloaded your sample and I'm following it.
I'm still having problems to show the data on the scheduler.
The 'schedule' variable has data on it. I double check it.
This is my method to get the data:
[HttpPost]
public async Task LoadData()
{
var schedule = await GetScheduleData(DateTime.Now.ToString("dd/MM/yyyy"), null, User.Identity.Name);
return Json(schedule);
}
The GetScheduleData method returns a list of ScheduleEvent:
Task> GetScheduleData(string date, Schedule schedule, string username)
The ScheduleEvent is:
public class ScheduleEvent
{
public int Id { get; set; }
public string Subject { get; set; }
public string Date { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public string StartTimezone { get; set; }
public string EndTimezone { get; set; }
public bool IsAllDay { get; set; }
public string Status { get; set; }
public string Plate { get; set; }
public string Workload { get; set; }
public string ListStudent { get; set; }
public string ListTeacher { get; set; }
public string ListVehicle { get; set; }
public string ListWorkload { get; set; }
public string Color { get; set; }
public bool IsReadonly { get; set; }
}
And this is the ejs schedule setup (Not able to put the code here. I think the editor think is a html code to render. So I uploaded an image.):