setLabelFormat()

4 posts, 0 answers
  1. Richard
    Richard avatar
    44 posts
    Member since:
    Jun 2014

    Posted 12 May 2015 Link to this post

    What is the format for setLabelFormat("") ?

     

    I tried setLabelFormat("0") and my values were replaced with the literal "0".

     

    I tried getLabelFormat() to see what the default was and it returned an empty string.

     

    I'm guessing "#" ? (or #.##, etc.?) This is stuff that should be in the documentation...

     

    Rich

  2. Richard
    Richard avatar
    44 posts
    Member since:
    Jun 2014

    Posted 12 May 2015 in reply to Richard Link to this post

    Hi --

     So "#" didn't work either..

     

    Rich

     

  3. DevCraft banner
  4. Nicholas
    Nicholas avatar
    4 posts
    Member since:
    Jun 2012

    Posted 12 May 2015 in reply to Richard Link to this post

    Okay, it appears that the "format" of this string format value is the same as the Java Formatter class, more info about which can be found here:

    https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

     

    Again, any kind of note in the documentation as to this would have been super helpful rather than struggling to find this info. This is why I"m posting it here so others don't have the same frustration as I have had.

     

    Rich

  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 14 May 2015 Link to this post

    Hi Richard,

    Thanks for writing.
    We never thought about adding this info in the docs because the name labelFormat implies a format string which is a very common API in Java.

    We will update the online docs just in case.

    Regards,
    Victor
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner