Timeline 1 day view (like Month)

6 posts, 0 answers
  1. Toby Riley
    Toby Riley avatar
    40 posts
    Member since:
    Aug 2012

    Posted 19 Dec 2011 Link to this post

    HI,

    What I want to do (and could do in the Scheduler control) was have the timeline view represent a full day but ignoring the start and end times. It was just like the monthview (showing one day) with all the appointments listed vertically.

    How can I do this with the scheduleView?

    Thanks Toby.
  2. Dani
    Admin
    Dani avatar
    848 posts

    Posted 20 Dec 2011 Link to this post

    Hello Tobias,

    There are properties you can use to modfy the Timeline view. Please, check the Configurator online example and experiment with the settings to see how the TimelineView display changes.

    You can use the VisibleDays property and set it to 1 to limit the number of days visible. You can use the ShowTimeRuler boolean property if you do not wish to display ticks. You can further customize the length of the TimeRuler with MinTimeRulerExtent and MaxTimeRulerExtent properties.

    I hope this will be helpful.

    Greetings,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
  4. Toby Riley
    Toby Riley avatar
    40 posts
    Member since:
    Aug 2012

    Posted 20 Dec 2011 Link to this post

    Hi Dani ,

    I've played around with those settings but I can't get away from the fact that the appointment widths are related to the duration and also that fact that the appointments start at the start time. (see attached)

    I could do this with a simple grid but seen as the month view does what I want I was hopping we could configure this.

    Can you help?

    Tobi.
  5. Dani
    Admin
    Dani avatar
    848 posts

    Posted 22 Dec 2011 Link to this post

    Hi Tobias,

    With the current implementation it is not possible to achieve the exact same appointment rendering in TimelineView as in your screenshot. You can customize the view itself using available attached properties and the TimeRulerItemStyleSelector for the ticks. Appointments, however, will not stetch to fill in the available space. 

    This behavior is a  feature that is planned to be implemented, but for the time being I cannot engage with a certain timeframe.

    Nevertherless, you can achieve a similar result with a custom view definition if you inherit the MonthViewDefinition. I attach here a demontsrative sample. The custom view definition shows only a limited number of days, starting from Today. Furthermore, the WeekGroup on the left is hidden by setting Width="0" in the MonthViewBottomLevelWeekGroupStyle of the GroupHeaderStyleSelector.

    I hope this will be helpful.

    All the best,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  6. Toby Riley
    Toby Riley avatar
    40 posts
    Member since:
    Aug 2012

    Posted 22 Dec 2011 Link to this post

    Hi Dani,

    This could work, would it be possible to show only 1 day?

    Tobi
  7. Dani
    Admin
    Dani avatar
    848 posts

    Posted 22 Dec 2011 Link to this post

    Hi Tobi,

    The MonthViewDefinition is a view that is grouped by week and cannot display less than 7 days.

    Regards,
    Dani
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top
DevCraft banner