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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

selectedDate property incorrect when switching to dayview from monthview

Thread ID:

Created:

Updated:

Platform:

Replies:

144426 May 6,2019 09:22 AM UTC May 9,2019 03:34 AM UTC Vue 3
loading
Tags: Schedule
Arwin
Asked On May 6, 2019 09:22 AM UTC

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?


Karthigeyan Krishnamurthi [Syncfusion]
Replied On May 7, 2019 11:43 AM UTC

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 
 


Arwin
Replied On May 8, 2019 09:12 AM UTC

It worked, perfect!

Karthigeyan Krishnamurthi [Syncfusion]
Replied On May 9, 2019 03:34 AM UTC

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


CONFIRMATION

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon