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

Adding data to 'e-resource' dynamically

Thread ID:

Created:

Updated:

Platform:

Replies:

146154 Jul 23,2019 11:16 AM UTC Jul 26,2019 03:56 AM UTC Angular - EJ 2 3
loading
Tags: Schedule
Sergio
Asked On July 23, 2019 11:16 AM UTC

Hi all,

While I'm receiving data from an API, I need to populate the array associated to my e-resource at my schedule, but it only works if I do it before this component is mounted. I need to call the method "loadData()" inside "ngOnInit" and dynamically, according to user requests... There are screenshots of my code (html and ts)




After this functions ends, both arrays are filled properly, but the data is not displaying on the schedule.
Any ideas?

Hareesh Balasubramanian [Syncfusion]
Replied On July 25, 2019 04:48 PM UTC

Hi Sergio, 

Greetings from Syncfusion Support. 

We have prepared a sample, such that data source for the resources has been assigned in ngOnInit function, which can be viewed from the following link, 

Please try the above sample, if you have any concerns please revert us back for further assistance. 

Regards, 
Hareesh 


Sergio
Replied On July 25, 2019 05:37 PM UTC

Hi again,

Few hours ago I could resolve my problem, but thanks for the support anyway!

As I supposed, simply refreshing the scheduler component makes all the data appears on it without problems, so I attached a #mySchedule tag on the schedule html component, and then call the refresh method like this:

this.mySchedule.refresh();


I hope this could help somebody else

Karthigeyan Krishnamurthi [Syncfusion]
Replied On July 26, 2019 03:56 AM UTC

Hi Sergio, 
 
We are happy that your problem has been fixed 😊 
 
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