Attendence sheet with resources

Hi,
Is it possible to create an attendence sheet using schedule/gantt chart or any other tool in sync-fusion.

like in image below.


1 Reply

BS Balasubramanian Sattanathan Syncfusion Team March 30, 2020 11:35 AM UTC

Hi Tabinda, 
 
Greetings from Syncfusion support.  
 
Yes, it is possible to achieve your requirement using Syncfusion Gantt chart.  
 
We have indicators support, using this we can render custom elements on particular date. We can assign indicators for each tasks in data source and map this field by using taskFields.indicators property. Using queryTaskbarInfo event we have highlighted the cells in chart side. Please find the below code example.  
  
  
public ngOnInit(): void {  
  this.data = [{  
   //...  
   Indicators: [  
   {  
    'date': '03/25/2019',  
   'name': 'AB'  
   }]  
 }];  
 this.taskSettings = {  
   //...  
   indicators: 'Indicators'  
 };  
 public queryTaskbarInfo(args: any): void {  
    var indicator = args.rowElement.querySelectorAll(".e-indicator-span");  
    for(var i = 0; i<indicator.length; i++) {  
       //...  
       indicator[i].children[0].className = 'e-rectangle e-attendance';  
       indicator[i].id = 'indicator' + args.data.TaskID + i;  
       indicator[i].children[0].textContent = indicatorValue;  
    }  
  }  
}  
  
We have prepared a sample as per your requirement, please find the below sample link.   
 
  
Regards,  
Balasubramanian S  


Loader.
Up arrow icon