Time (hh:mm) in NumericGauge?

3 posts, 1 answers
  1. Jacob
    Jacob avatar
    3 posts
    Member since:
    Aug 2010

    Posted 16 Sep 2010 Link to this post

    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. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 17 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. Jacob
    Jacob avatar
    3 posts
    Member since:
    Aug 2010

    Posted 17 Sep 2010 Link to this post

    Thanks! That is exactly what I needed.
Back to Top