Different color for Different Interval

2 posts, 0 answers
  1. Ranjit
    Ranjit avatar
    9 posts
    Member since:
    Nov 2011

    Posted 19 Dec 2011 Link to this post


    I would like my time bar to have different color for different intervals and also would want to set the same at run time.

    for example: Say 2005 and 2006  in Red, others in Green or vice-versa  based on the data from the database.

    Is this possible ?

    - Thanks in advance 
  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 21 Dec 2011 Link to this post

    Hi Ranjit,
    The TimeBar control itself does not support this scenario. You can, however, easily achieve the described result. You can, for example, create your own custom ItemsControl control with Reactangle items. The size of those items depends on the time period that they represent and their background will be set according to your requirements.

    the Telerik team

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

Back to Top