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

DayStartTime and DayEndTime with TimelineViewDefintion

4 Answers 92 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 14 May 2013, 12:26 PM
Hello everyone,

I recently started using the RadScheduleView component. I started with the example provided by Telerik "TimeBar Minimap for ScheduleView". The RadScheduleView be used to display the interventions of our technicans. Our technicians have office hours (usually) between 7am to 20pm. 
Our desire is to not display these hours to provide a better display of working hours. For this, we informed the DayStartTime and DayEndTime properties in TimelineViewDefintion.

<telerik:TimelineViewDefinition
    ShowTimeRuler="True"
    TimerulerGroupStringFormat="{}{0:dddd, dd/MM/yyyy}"
    TimerulerMajorTickStringFormat="{}{0:%H}"
    TimerulerMinorTickStringFormat=":{0:%m}"
    VisibleDays="{Binding ElementName=TimeBar, Path=Selection, Converter={StaticResource VisibleDaysConverter}}"
    StretchAppointments="True"
    StretchGroupHeaders="True"
    DayStartTime="07:00"
    DayEndTime="20:00"
    MajorTickLength="1h"
    MinorTickLength="15min"
    MinTimeRulerExtent="50"
    MaxTimeRulerExtent="Infinity"
    FirstDayOfWeek="Monday" />

This works well if we show one day as in the example (OneDay.png). O
n the timeline each MinorTick is 15 minutes.

By cons, if we show two consecutive days, the first day starts at 7am, the second day ends at 20pm but between the two days, all hours (even those outside of the desired range) are displayed. See TwoDays.png.

I marked in red on the image TwoDays.png parts that we do not want to see.

How do that the DayStartTime and DayEndTime properties will be used for every day when displaying several days?

Thank you for your help and sorry if my English is not great.

4 Answers, 1 is accepted

Sort by
0
Julien
Top achievements
Rank 1
answered on 15 May 2013, 12:36 PM
I just saw on this topic that this feature is not yet supported by the component. I hope it will be suported soon.
0
Yana
Telerik team
answered on 16 May 2013, 07:06 AM
Hi Julien,

Indeed, the needed approach is not supported in TimelineViewDefinition.

Thank you for sending your feedback.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sofien
Top achievements
Rank 1
answered on 26 Jun 2014, 01:36 PM
Hi Yana, 
I have the same problem of Julien ...
Do-you fix this bug in the new versions? 
thank you

Greetings,
Sofien MAHJOUB
Senior Developer
0
Kalin
Telerik team
answered on 26 Jun 2014, 03:07 PM
Hi Sofien,

This described behavior of the TimelineViewDefition is intended by design. However I have already answered you in this forum thread - could please check my answer there.

Hope this helps.

Regards,
Kalin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ScheduleView
Asked by
Julien
Top achievements
Rank 1
Answers by
Julien
Top achievements
Rank 1
Yana
Telerik team
Sofien
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or