Half day task duration

Hello,

I have a problem with Gantt chart editing. When I am editing the end date (also start date) of a task I can set a duration to half day. Is there a possibility to disable half day- only to full day length?

Attachment: screenshot_c2954a2c.7z

3 Replies

JR John Rajaram Syncfusion Team August 29, 2018 06:30 AM UTC

Hi Michal, 
Thank you for contacting Syncfusion support.  
We have analyzed your requirement. We can roundoff the duration value by enabling the roundOffDuration event argument in “taskbarEditing” client-side event. Please refer the below code snippet.  
<script type="text/javascript"> 
   $(function () { 
         $("#GanttContainer").ejGantt({ 
              dataSource: projectData, 
              taskbarEditing: function (args) { 
                    args.roundOffDuration = true; 
                } 
               //.. 
         }); 
      }); 
  </script> 
We have prepared the sample for your reference please find the sample link below 
Also, we do have a KB document for this query, please find the KB link below,  
Please let us know if you require further assistance on this.  
Regards,  
John R 



MD Malgorzata Dobkowska August 29, 2018 07:53 AM UTC

Hello,

Yours solution fixed the problem.
Thanks.


JR John Rajaram Syncfusion Team August 30, 2018 06:56 AM UTC

Hi Michal, 
Thank you for the update. Please let us know if you need further assistance on this. 
Regards, 
John R 


Loader.
Up arrow icon