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

SchedulerView DayStartTime used everyday

6 Answers 114 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Abdelhak LAKNIN
Top achievements
Rank 1
Abdelhak LAKNIN asked on 26 Dec 2010, 06:19 PM
Hi guys,

I am porting code from our winform scheduler (home made) to the new schedulerView control of Telerik.
So to reproduce the same view, I am using a SchedulerView with a TimelineViewDefinition. I set the property DayStartTime and DayEndTime on my TimelineViewDefinition.
When executing my project, I noticed that these values are used only for the first day of my calendar.
Is it possible to extend this behavior for all days ?

To see what I wanted to do, please see the attached file.


Thank you

6 Answers, 1 is accepted

Sort by
0
Abdelhak LAKNIN
Top achievements
Rank 1
answered on 28 Dec 2010, 11:36 AM
Hi,

It's Ok, I changed for a DayViewDefinition. The DayStartTime and DayEndTime work well in this case.


Thanks
0
Boyan
Telerik team
answered on 29 Dec 2010, 03:50 PM
Hi Abdelhak LAKNIN,

This is the current implementation of TimelineView. It is changing only the start hour of the first day and the end date of the last day. This behavior is by design. It is possible to change the behavior in future or provide a way to use both cases. For now I advice you to use Day/WeekView and set the VisibleDays value to the desired size.

Don't hesitate to contact us if you have other questions.


Regards,
Boyan
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Andrei
Top achievements
Rank 1
answered on 12 Feb 2013, 09:50 AM
Hi.

I am having the same problem , but I actually need it to do DayStartTime on every day in the visible range. I need to have an option like show/hide night time.

Is there a way I can force the TimelineViewDefinition to apply the DaysStartTile to all days in the visible range?
0
Vladi
Telerik team
answered on 14 Feb 2013, 09:12 AM
Hi Andrei,

As Boyan mentioned in the current version of RadScheduleView by design in the TimelineView the DayStartTime property applies only for the first visible day and the DayEndTime applies only to the last visible day of the view. It is not possible to force the DayStartTime property to be applied to each day of the view because this is done in the code of the control.

We can advice you to use the Day/WeekViews and set the VisibleDays value to the desired size.

Regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Andrei
Top achievements
Rank 1
answered on 14 Feb 2013, 11:30 AM
Hi. Thank you for the swift reply.

I understand that you can't do it by means of properties , but i am assuming you can modify the code.
I read on the Telerik website that the RadControls for WPF come with Full source code.
Am i wrong in any way in my assumption ?
0
Vladi
Telerik team
answered on 14 Feb 2013, 01:25 PM
Hello Andrei,

The source code that is provided with RadControls is for educational purposes only and changing it is not supported.

We may consider implementing such functionality for the DayStartTime/DayEndTime properties in the TimelineView for our future releases of RadScheduleView.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Abdelhak LAKNIN
Top achievements
Rank 1
Answers by
Abdelhak LAKNIN
Top achievements
Rank 1
Boyan
Telerik team
Andrei
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or