Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144432 | May 6,2019 02:02 PM UTC | May 9,2019 03:38 AM UTC | JavaScript - EJ 2 | 5 |
![]() |
Tags: Schedule |
public JsonResult LoadData(Params param) // Here we get the Start and End Date and based on that we can filter the data and return to Scheduler
{
DateTime start = DateTime.Parse(param.StartDate);
DateTime end = DateTime.Parse(param.EndDate);
var data = db.ScheduleEventDatas.Where(app => (app.StartTime >= start && app.StartTime <= end) || (app.RecurrenceRule != null && app.RecurrenceRule != "")).ToList(); // Here filtering the events based on the start and end date value.
return Json(data, JsonRequestBehavior.AllowGet);
}
public class Params
{
public string StartDate { get; set; }
public string EndDate { get; set; }
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.