onActionBegin(args): void {
if(args.requestType === "toolbarItemRendering") {
let item1 = args.items[1];
let item2 = args.items[2];
args.items[1] = item2;
args.items[2] = item1;
args.items[0].align = "Center";
args.items[1].align = "Center";
args.items[2].align = "Center";
}
} |
public JsonResult LoadData(Params param) // Here we get the Start and End Date and based on that can filter the data and return to Scheduler
{
DateTime start = param.StartDate;
DateTime end = 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 DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
} |
this.activeView.renderDates[0];
this.activeView.renderDates[this.activeView.renderDates.length-1]; |