Hi Team,
I want to populate the schedule using CrudManager, I have gone through the docs but I dont see how to read startdate and enddate from the source dynamically using CrudManager.
Any suggestions? How to accomplish this?
For a workaround I use this which works fine
getData() {
const me = this,
engine = me.scheduler.schedulerEngine;
me.http.get('./assets/data/data2.json').subscribe(data => {
me.resources = data['resources'].rows;
me.events = data['events'].rows;
me.timeRanges = data['timeRanges'].dueDates;
me.dependencies = data['dependencies'].rows;
console.log(me.events);
engine.setStartDate(new Date(data['calendar'].startDate));
engine.setEndDate(new Date(data['calendar'].endDate));
});
}
In API docs of crudManager, It does not show how to read calendar startdate and enddate of the schedule.