Resource overallocation

Hello,

is there any task/resource property or event to catch if any resource is overallocated? I'm using a gantt in resources view mode.

Thanks.

3 Replies

PE Punniyamoorthi Elangovan Syncfusion Team April 16, 2018 12:29 PM UTC

Hi Oscar, 
Thank you for contacting Syncfusion support. 
We have analyzed your requirement. We can find the overallocated resources by using eOverlapIndex property. Please refer the below code snippet. 
   
<script type="text/javascript"> 
       $("#resourceOverLoaded").click(function () { 
            var OverallocatedResourceRecords = []; 
            var ganttObj = $("#resourceGantt").data("ejGantt"); 
            var records = ganttObj.model.updatedRecords; 
            for (i = 0; i < records.length; i++) { 
                if (records[i].eOverlapIndex!=1) 
                    OverallocatedResourceRecords.push(records[i]); 
            } 
        }) 
</script> 
 
We have prepared the JS Playground sample with your requirement. Please find the sample link below 
Regards, 
Punniyamoorthi 



OB oscar bartolome April 17, 2018 09:57 AM UTC

Ok, thanks!!


PE Punniyamoorthi Elangovan Syncfusion Team April 18, 2018 12:05 PM UTC

  
Hi Oscar,  
Thank you for your update 
Please let us know, if you require any further assistance on this. 
Regards, 
Punniyamoorthi 


Loader.
Up arrow icon