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