// To get current view date we used getCurrentViewDates public method
let startDate:Date= currentViewDatesasDate;
let endDate:Date= currentViewDates[currentViewDates.length -1]asDate;
JLjose laraNovember 30, 2019 04:32 PM
Thx. This works inside the onCreated() method. But, when I use the same logic inside of onNavigating() method, the dates are one week behind. How can I get the current dates in other events as well?
VDVinitha Devi Murugan Syncfusion Team December 2, 2019 02:32 AM
Thanks for your update.
You can get the start and end date of current date range by making use of actionComplete event with args.requestType viewNavigate and dateNavigate. For the same we have prepared the below sample, kindly refer it.