SchedulerView DayStartTime used everyday

7 posts, 0 answers
  1. Abdelhak LAKNIN
    Abdelhak LAKNIN avatar
    7 posts
    Member since:
    Nov 2009

    Posted 26 Dec 2010 Link to this post

    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
  2. Abdelhak LAKNIN
    Abdelhak LAKNIN avatar
    7 posts
    Member since:
    Nov 2009

    Posted 28 Dec 2010 Link to this post

    Hi,

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


    Thanks
  3. UI for WPF is Visual Studio 2017 Ready
  4. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 29 Dec 2010 Link to this post

    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
  5. Andrei
    Andrei avatar
    3 posts
    Member since:
    Jan 2013

    Posted 12 Feb 2013 Link to this post

    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?
  6. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 14 Feb 2013 Link to this post

    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.

  7. Andrei
    Andrei avatar
    3 posts
    Member since:
    Jan 2013

    Posted 14 Feb 2013 Link to this post

    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 ?
  8. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 14 Feb 2013 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready