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

Vuex store data

Thread ID:

Created:

Updated:

Platform:

Replies:

145556 Jun 27,2019 08:02 PM UTC Jul 1,2019 12:18 PM UTC Vue 2
loading
Tags: Schedule
Victor
Asked On June 28, 2019 04:54 AM UTC

Hi
I want add events that loaded from Google Firebase. All data fetched to vuex store and I can't find info how I can include events from vuex store getter to Schedule
Does someone solved this problem already?
Thanks.

Victor
Replied On June 28, 2019 06:03 AM UTC

I included firebase vuex store data to schedule,
I have "events" getter and assign watch method on this getter.

data () {
return {
eventSettings: {}
}
},
watch: {
events: {
immediate: true,
deep: true,
handler (newValue) {
this.eventSettings = {
dataSource: newValue
}
}
}
},

But it's schedule not updated when new data is appears.


Vinitha Devi Murugan [Syncfusion]
Replied On July 1, 2019 12:18 PM UTC

Hi Victor, 
 
Greetings from Syncfusion. 
 
We suggest you to use the below code to assign the datasource to the scheduler for the same we have prepared the below sample for your reference. 
 
 
let scheduleObj = document.querySelector('.e-schedule').ej2_instances[0]; 
scheduleObj.eventSettings.dataSource = data; 
 
Kindly use the above suggested way and let us know, if it resolves your problem and also, if you need any further assistance on this. 
 
Regards, 
M.Vinitha devi. 


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