Hi Ariff,
Greetings from Syncfusion support..!
We have validated your requirement “
Get the startdate and enddate of current view” at our end and let you know that, you can achieve this requirement with the help of scheduler’s
getCurrentViewDates method. We have prepared a sample for your reference which can be downloaded from following link.
App.tsx
const onDataBinding = (args: any) => {
var scheduleObj : any = (document.querySelector(".e-schedule") as any).ej2_instances[0];
var currentViewDates : Date[] = scheduleObj.getCurrentViewDates();
var startDate: Date = currentViewDates[0];
var endDate: Date = currentViewDates[currentViewDates.length-1];
console.log("current view start date: ", startDate);
console.log("current view end date: ", endDate);
} |
Kindly try the above solution and get back to us if you need any further assistance.
Regards,
Praveenkumar