We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to hide the resourceGroup row progressbar in ej1 gantt control?

Hi syncfusion supporter

Is there any way to hide the resourceGroup row progressbar  in ej1 gantt control?



4 Replies

XI xia replied to Xia Guangwei August 5, 2019 02:14 AM UTC

Hi syncfusion supporter

Is there any way to hide the resourceGroup row progressbar  in ej1 gantt control?



Attach file is the screenshot that demonstrates what is my purpose.

Attachment: gantt_screenshot_ec27d63a.rar


GA Gurunathan A Syncfusion Team August 5, 2019 10:38 AM UTC

Hi Xia Guangwei, 
Thanks for contacting syncfusion support. 
We can hide the group row task bar by using queryTaskbarInfo event, please check the below code snippet for details. 

[gantt.html] 

$("#resourceGantt").ejGantt({ 
     //… 
    queryTaskbarInfo:function(args){ 
       if(args.data.hasChildRecords) 
        $(args.taskbar).find(".e-parentContainer").css('display', 'none');      
    } 
}); 
We have also prepared a sample for this and please find the same below. 

 
Regards, 
Gurunathan  



XI xia replied to Gurunathan A August 6, 2019 06:52 AM UTC

Hi Xia Guangwei, 
Thanks for contacting syncfusion support. 
We can hide the group row task bar by using queryTaskbarInfo event, please check the below code snippet for details. 

[gantt.html] 

$("#resourceGantt").ejGantt({ 
     //… 
    queryTaskbarInfo:function(args){ 
       if(args.data.hasChildRecords) 
        $(args.taskbar).find(".e-parentContainer").css('display', 'none');      
    } 
}); 
We have also prepared a sample for this and please find the same below. 

 
Regards, 
Gurunathan  


Thx Gurunathan, your solution works pretty fine.


GA Gurunathan A Syncfusion Team August 6, 2019 08:55 AM UTC

 Hi Xia Guangwei, 
  
Welcome, we are happy to assist you.  
  
Regards, 
Gurunathan 


Loader.
Up arrow icon