Short duration events not shown when timeline is big

3 posts, 1 answers
  1. Kato
    Kato avatar
    2 posts
    Member since:
    Jan 2016

    Posted 02 Mar 2016 Link to this post

    Hi,

    Say I have a timeline with a duration of 180hours. If I add events with duration of for instance 1 minute and zoom the timeline all the way out, the events become completely hidden. Zooming in on the area of the event will eventually make the event appear again.

    Is there a way to set a minimum event width - at the very least a dot or a small vertical mark - to visually indicate that there exists an event here? 

    I am using custom templates for the events. 

    Thanks,

    Kato

  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    996 posts

    Posted 03 Mar 2016 Link to this post

    Hello Kato,

    You can use the MinWidth property of the TimelineItemControl for this purpose. I have attached a project where I demonstrate this. In order to get the timeline to respect the min-width for the item, you need to add a setter for the MinWidth property. In order to plug in the custom template you have, you can add a setter for the Template property of the timeline item control.

    Let us know how it goes.

    Regards,
    Petar Marchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Kato
    Kato avatar
    2 posts
    Member since:
    Jan 2016

    Posted 04 Mar 2016 in reply to Petar Marchev Link to this post

    Hi Petar, 

    thanks, that was exactly what I needed :) 

    Regards

    Kato

Back to Top