Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143765 | Apr 4,2019 11:12 AM UTC | Apr 15,2019 04:00 AM UTC | Angular | 9 |
![]() |
Tags: ejSchedule |
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]; |
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.