This is a migrated thread and some comments may be shown as answers.

Different color for Different Interval

1 Answer 37 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Ranjit
Top achievements
Rank 1
Ranjit asked on 19 Dec 2011, 01:52 PM
Hi,

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 
Ranjit.

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 21 Dec 2011, 03:47 PM
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.

Greetings,
Tsvetie
the Telerik team

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

Tags
TimeBar
Asked by
Ranjit
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or