Custom Style for Milestones

2 posts, 0 answers
  1. Johannes
    Johannes avatar
    13 posts
    Member since:
    Mar 2011

    Posted 11 Jul 2012 Link to this post

    Hi, I would like to define a custom style for milestones. How to do that?
    It looks like a TimelineItem is regarded to be a milestone if it's duration is zero - I guess this is the standard behavior of RadTimeline.

    In the examples, the ItemTemplateSelector-property of RadTimeline is used, and DataTemplateSelectors in the ViewModel. Do I have to use these to define my own style for a milestone?

    And another (maybe tricky) question: Is it possible to define a style for a milestone like in the attached image, so that each milestone has a dashed line going from the top of the control to the bottom?
    As I understand it, the positions of the TimelineItems are calculated by RadTimeline, so if the custom style of the milestones would include such a dashed line (which would be an element with a very large height) that would be a problem, I guess?
  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 12 Jul 2012 Link to this post

    Hi Johannes,

    Yes, you can define your custom style for any of the timeline items, just as demonstrates in our demos. Here is a link to our online Silverlight demos, the approach is the same for WPF.

    Regarding your second question - I am not quite sure you will be able to achieve this result with a custom template for the timeline items, but you can try. Basically, we are working on support for annotations that will help you in this respect but I cannot commit a specific timeframe for the availability of this feature.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top