Unplanned
Last Updated: 19 Mar 2018 14:44 by ADMIN
Damian Fabri
Created on: 03 Apr 2015 18:44
Category: Gantt
Type: Feature Request
8
Gantt Needs to consider working
RadGantt needs to considering "working time" when plotting.

You have workDayStart, workDayEnd, workWeekStart, and workWeekEnd which appears at this point to only control UI.

My suggestion is as follows: let's say I have a task that is 8 hours long in duration(does not appear that I can set the duration on a task, its readonly), I set the task StartTime to be Friday 1PM and EndTime to be Friday 9PM, hence 8 hour duration, I would expect the control to consume its own configuration(defined by params above) and know that from 5PM - 9PM are not working hours, nor is Sat or Sun and to paint the additional hours on Monday from 8AM - 12PM.  This is how MSProject and other gantt controls operate.

Essentially I don't want to give you an EndTime, I should be able to simply set the StartTime and provide a duration and you would consume the working hours configuration and figure out the EndTime to plot.
1 comment
ADMIN
Peter Milchev
Posted on: 19 Mar 2018 14:44
Required behavior can be achieved by accessing the underlying Kendo UI Gantt widget and set the workDayStart and workDayEnd properties of the widget options accordingly. (Visit kendo.ui.Gantt - Configuration for more information about the API) https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt#configuration

<script type="text/javascript">
    function f() {
        var gantt = $find('<%= RadGantt1.ClientID%>');
  
        if (!gantt.get_showFullTime()) {
            gantt._widget.options.workDayStart.setHours(7);
            gantt._widget.options.workDayEnd.setHours(17);
            gantt.repaint();
        }
        //Sys.Application.remove_load(f);
    }
    Sys.Application.add_load(f);
</script>