Resource View datasource refreshing issue

Hi,
in Angular, when I want to refresh dinamically the information in my gantt I do this:

$("#my_gantt").ejGantt({ dataSource: this.ganttData });
In ProjectView mode it works well, but in ResourcesView mode it makes the application crash with this error:
ERROR TypeError: valFn is not a function
at GanttComponent.EJComponents.getTwowayChanges (:3000/node_modules/ej-angular2/src/ej/core.js:216)
at GanttComponent.EJComponents.ngOnChanges (:3000/node_modules/ej-angular2/src/ej/core.js:207)
at checkAndUpdateDirectiveDynamic (:3000/node_modules/@angular/core/bundles/core.umd.js:12464)
at checkAndUpdateNodeDynamic (:3000/node_modules/@angular/core/bundles/core.umd.js:13988)
at checkAndUpdateNode (:3000/node_modules/@angular/core/bundles/core.umd.js:13912)
at prodCheckAndUpdateNode (:3000/node_modules/@angular/core/bundles/core.umd.js:14633)
at Object.eval [as updateDirectives] (ng:///AppModule/SchedulerComponent.ngfactory.js:427)
at Object.updateDirectives (:3000/node_modules/@angular/core/bundles/core.umd.js:14355)
at checkAndUpdateView (:3000/node_modules/@angular/core/bundles/core.umd.js:13875)
at callViewAction (:3000/node_modules/@angular/core/bundles/core.umd.js:14226)
Any idea? This is happening in Angular framework, in javascript one work well.
Thanks.

3 Replies

PE Punniyamoorthi Elangovan Syncfusion Team June 12, 2018 01:34 PM UTC

Hi Oscar, 
Thank you for contacting Syncfusion support 
We have analyzed your reported issue and code snippet, but we are unable to reproduce the reported issue in our end. We have prepared the sample for your reference with details you have provided with us. In this sample we had dynamically set the datasource to the Resourceview Gantt then the ResourceView Gantt is rendered properly without any issues. 
Please find the sample link below 
 
Please let us know if you require further assistance on this. 
Regards, 
Punniyamoorthi  




OB oscar bartolome June 18, 2018 07:37 AM UTC

Hi,

now it works fine. The problem was that I had an old 'ej.web.all.min.js' version. With the latest one it works well.
The version of the 'ej.web.all.min.js' that doesn't work is the one you have in the documentation gantt overview example for Angular (github source).

Thanks!


PE Punniyamoorthi Elangovan Syncfusion Team June 19, 2018 02:36 PM UTC

Hi Oscar, 
We are glad that your sample is working fine now. 
In our online documentation sample we have referred our latest product version in package.json file. The issue may have occurred due to cache files in your system. 
Please let us know if you require further assistance on this.  
Regards,  
Punniyamoorthi  


Loader.
Up arrow icon