ItemLabelFormat

4 posts, 0 answers
  1. Niclas Junsved
    Niclas Junsved avatar
    10 posts
    Member since:
    Dec 2009

    Posted 17 Mar 2010 Link to this post

    Hi,

    I modify the ItemLabelFormat for some specific DataPoints in a series like:

    e.DataPoint.LabelFormat = "#VAL" + "\n" + "(" + labelValue + "%)";

    In the default ItemLabelFormat values are displayed like for example:

    2,77 bil

    or

    138,17 mil

    I want the same format when I customize my ItemLabelFormat, i.e. I want to keep the "bil" and "mil" formatting and not show 277000000000 + my "labelValue". How do I achieve that?

    I have tried different format expressions from help page but without any luck.

    Best Regards,

    Niclas


  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 18 Mar 2010 Link to this post

    Hello Niclas Junsved,

    Try something like this: "#Y{0,,,.##} bil some string".

    All the best,
    Vladimir Milev
    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. Simon Wolters
    Simon Wolters avatar
    20 posts
    Member since:
    Mar 2010

    Posted 28 Apr 2010 Link to this post

    Can we somehow "localize" the human readable format?
    I'd like to display "t" instead of "k" and "mio" instead of "mil" and don't get how to do this using custom format expressions.

    Thank you!
  4. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 30 Apr 2010 Link to this post

    Hi Simon Wolters,

    If you use the built-in human readable formats, there is no way to customize them. However, in your case with the "#Y{0,,,.##} bil some string" string, the "bil" part is just a regular text. It can be anything. The important part is only in the curly braces {}.

    Greetings,
    Vladimir Milev
    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.
Back to Top