This is a migrated thread and some comments may be shown as answers.

DayView Timeline Hours

4 Answers 136 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Lance
Top achievements
Rank 1
Lance asked on 22 Aug 2016, 04:32 PM
I have tasks in my current implementation that run to 6pm but the timeline only shows 8am to 4pm. How do I go about adjusting the Gantt to show 7am to 6pm?

4 Answers, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 25 Aug 2016, 08:59 AM
Hello Lance,

I am afraid that currently setting the StartTime and EndTime in DayView functionality is not supported. What you could do is setting the ShowFullTime property to true in order to display all hours of the day. 

I would also like to inform you that a new Range and SelectedDate functionalities for the RadGantt will be introduced in the new R3 2016 release which is due in September 2016. 
 
Regards,
Peter Milchev
Telerik by Progress
0
Kasim
Top achievements
Rank 2
answered on 15 Mar 2018, 05:57 AM

Hi Peter,

Any update on the hours selection feature in the Gantt control?

0
Peter Milchev
Telerik team
answered on 19 Mar 2018, 11:05 PM
Hello Kasim,

I am sharing the answer from the support ticket here for convenience and better visibility from the community.

There is a feature request in the Telerik AJAX Feedback and Ideas portal regarding the WorkDayStart and WorkDayEnd: Gantt Needs to consider working. You can subscribe it to get notified when there is any progress on it. 

Meanwhile, the following workaround can be used. It relies on the API of the underlying Kendo UI Gantt. More information on the Kendo UI Gantt can be found here: 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>


Regards,
Peter Milchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Kasim
Top achievements
Rank 2
answered on 21 Mar 2018, 05:17 AM
Thanks, Peter it was useful indeed.
Tags
Gantt
Asked by
Lance
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Kasim
Top achievements
Rank 2
Share this question
or