updateRecordByTaskId not working

Hello,

I have two gantt controls in the same page. One normal view and the other resources view.
I want to synchronize them, when one task is edited in one it must be updated in the other.
The code I'm using:

$("#syncfusion_gantt").ejGantt({
        taskbarEdited: function (args) {
            var ganttObj = $("#syncfusion_load").data("ejGantt");
            ganttObj.updateRecordByTaskId(args.data.item);
        },...

$("#syncfusion_load").ejGantt({
        taskbarEdited: function (args) {
            var ganttObj = $("#syncfusion_gantt").data("ejGantt");
            ganttObj.updateRecordByTaskId(args.data.item);
        },...

When I update a task in the resources view one ("#syncfusion_load") it updates well and the change is shown in the normal view one ("#syncfusion_gantt"). But updating a task in the normal view one seems to update well, but the changes are not shown in the resources view one.
Any idea?

Thanks.




7 Replies

PE Punniyamoorthi Elangovan Syncfusion Team April 10, 2018 12:42 PM UTC

Hi Oscar, 
Thank you for contacting syncfusion support. 
We have analyzed your requirement and code snippet. Currently there is no support to update the record by using updateRecordByTaskId public method for the resource allocation view gantt and this support will be available in our upcoming 2018 Volume 2 main release, which is expected to be roll out in the end of May 2018.  
If you are in need of a solution earlier we can provide a custom patch for this support. Please let us know if you require further assistance on this. 
Regards, 
Punniyamoorthi 




OB oscar bartolome April 10, 2018 01:28 PM UTC

Hello,

we're making a study of gantt controls to evaluate which to purchase, so it would be great for us having a patch to make a minimum functional prototype before the trial period expires.

Thanks!


PE Punniyamoorthi Elangovan Syncfusion Team April 11, 2018 01:04 PM UTC

Hi Oscar, 
We have created a support incident under your account for latest query. 
Please log on to our support website to check for further updates. 
Please let us know if you require further assistance on this. 
Regards,  
Punniyamoorthi.

 



OB oscar bartolome June 6, 2018 02:57 PM UTC

Hello, now I'm facing this issue in Angular. Any way to solve this for the Angular Framework?

Thanks


JS Jonesherine Stephen Syncfusion Team June 7, 2018 12:46 PM UTC

Hi Oscar, 
Thank you for contacting Syncfusion support. 
We have prepared the workaround sample in v16.1.0.37 and also synchronized ProjectView and ResourceView Gantt on taskbar editing actions using provided code snippet. 
Please find the sample from below location. 
Please ensure the product version in your project and let us know if you require further assistance on this. 
 
Regards, 
Jone sherine P S 



OB oscar bartolome June 8, 2018 11:16 AM UTC

Hi,

can you try this example in Angular framework instead in pure javascript? With this code in Angular the ResourcesView one does not update when you make changes in the ProjectView one. Making changes in the ResourcesView one does update the ProjectView one.

Thanks


JS Jonesherine Stephen Syncfusion Team June 8, 2018 12:56 PM UTC

Hi Oscar, 
We have prepared the sample in Angular platform and synchronized ProjectView and ResourceView Gantt while editing the taskbars. As per our previous update we have prepared the sample in v16.1.0.37 kindly ensure your product version, please find the code example below. 
[ts] 
 
taskbarEditedResource(event) {         
        let ganttObj = $("#GanttProjectControl").ejGantt('instance'); 
        ganttObj.updateRecordByTaskId(event.data.item); 
    } 
taskbarEditedProject(event) {        
        let ganttObj = $("#GanttResourceControl").ejGantt('instance'); 
        ganttObj.updateRecordByTaskId(event.data.item); 
    }    
 
 
[html] 
 
<ej-gantt id="GanttResourceControl" style="height:450px;width:50%" 
           //..  
        (taskbarEdited) = taskbarEditedResource($event) 
       > 
</ej-gantt> 
<ej-gantt id="GanttProjectControl" style="height:450px;width:50%;float:left" 
        //.. 
        (taskbarEdited) = taskbarEditedProject($event)   
       > 
</ej-gantt> 
Please find the sample from below location. 
 
If the issue still exists at your end please revert us by modifying the sample based on your application along with the replication procedure. This would be helpful for us to serve you better. 
Please let us know if you need further assistance on this. 
 
Regards, 
Jone sherine P S. 


Loader.
Up arrow icon