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

ScheduleView - Timeline - DatePicker

4 Answers 111 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 04 Jul 2011, 10:44 PM
Dear Telerik Team,
i have a small problem.

I have a ScheduleView, which has just one active view definition: Timeline.

The Timeline everytime shows one month (31 days).

When a user use the included datepicker in the header of the scheduleview, the visible range of the scheduleview changes
just for 7 days (when a user clicks next or forward) every time (eg.: when i start with 1. July - 31. July and i cklick forward, then the visible range will be 8.July - 9. August). 

My problem is, the visible range, have to change for a complete month (eg. when i start with 1. July - 31. July and i cklick forward, then the visible range has to be 1.August - 31. August)

Can you please tell me how i can do this ?

4 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 06 Jul 2011, 04:05 PM
Hello Markus,

You need to set the LargeChangeInterval property on the TimelineViewDefinition to 1 month:
<telerik:TimelineViewDefinition LargeChangeInterval="1m" ... />

If the VisibleDays property is not a constant, you could bind LargeChangeInterval to VisibleDays through a Converter, that will create proper DateTimeInterval instances.

Kind regards,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Markus
Top achievements
Rank 1
answered on 06 Jul 2011, 04:13 PM
Hi Valeri,
Thanks for your help that worked great !

Sorry i'm very new to the WPF controls.

My VisibleDays property will be calculated seperately for each mont (30 days, 31 days, 28/27 days),
do i need there a special kind of converter for the LargeChangeInterval to be recalculated ?

best regards
Markus


0
Valeri Hristov
Telerik team
answered on 06 Jul 2011, 04:15 PM
If you are going to always display one month, you will not need to change the LargeChangeInterval proeprty, as it automatically determines the number of the days in the current month.

Kind regards,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Markus
Top achievements
Rank 1
answered on 06 Jul 2011, 04:24 PM
have it

thanks !
Tags
ScheduleView
Asked by
Markus
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Markus
Top achievements
Rank 1
Share this question
or