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

Time (hh:mm) in NumericGauge?

2 Answers 55 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 16 Sep 2010, 06:13 PM
Hi,

I was wondering if it is possible to display time in hh:mm format in a Numeric Gauge. I have been tearing apart the Time Monitor example code to try to figure out how you guys put the colon in the Numeric Indicator in the bottom right-hand corner, but I cannot figure out how to do it myself. What am I missing?

2 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 17 Sep 2010, 03:11 PM
Hi Jacob,

The appearance of characters in the numeric indicator could be specified with the "TemplatePrefix" property.
Telerik themes provide the "SevenSegs", "HexagonalSevenSegs" and "FontFamily" templates that could be used as template prefix. The "FontFamily" prefix is used by default.
Actually this property specifies the start of data template names. The "HexagonalSevenSegs" data templates contain the names like to the following: "HexagonalSevenSegs0", "HexagonalSevenSegs1", "HexagonalSevenSegs2" etc.
Any character template could be overridden in the resource dictionary. Also you can create own character template set for numeric indicator with names as template prefix plus the character.
The example I have attached overrides the decimal separator templates ("HexagonalSevenSegs.", "FontFamily.").
So, it allows displaying a value of double as time that uses "hh:mm" format.

Kind regards,
Andrey Murzov
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Jacob
Top achievements
Rank 1
answered on 17 Sep 2010, 07:08 PM
Thanks! That is exactly what I needed.
Tags
Gauge
Asked by
Jacob
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Jacob
Top achievements
Rank 1
Share this question
or