We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

selectedDate property incorrect when switching to dayview from monthview

Hi,

When I have opened the monthview and click on a date to open the dayview of this date, the selectedDate property is not updated.

So I have a scheduler like this: ejs-schedule ref="scheduleObj" :event-settings="eventSettings">
And I try to get the selectedDate: this.$refs.scheduleObj.selectedDate

I get the old date, when I switch a day further or back I get the correct date.

How can we fix this?


3 Replies

KK Karthigeyan Krishnamurthi Syncfusion Team May 7, 2019 03:43 AM

Hi Arwin, 
 
We have checked the reported case and the selectedDate is updated once the view is navigated to Day from Month after clicking the date. We suspect that Scheduler instance is not correct which could be the cause and kindly use the below code example. 
 
let scheduleObj = this.$refs.ScheduleObj.ej2Instances; 
 alert(scheduleObj.selectedDate); 
 
Regards, 
Karthi 
 



AR Arwin May 8, 2019 01:12 AM

It worked, perfect!


KK Karthigeyan Krishnamurthi Syncfusion Team May 8, 2019 07:34 PM

Hi Arwin,  
 
We are happy that our solution resolved your issue. 
 
Regards, 
Karthi 


Loader.
Live Chat Icon For mobile
Up arrow icon