map legend

2 posts, 0 answers
  1. Abdulhameed
    Abdulhameed avatar
    27 posts
    Member since:
    Jul 2010

    Posted 11 May 2011 Link to this post

    I am trying to use custom format in the legend.
    To be specific I am trying to 
    divide the number by 1000 and add K

    to be of this format

    23 -> 23
    230 -> 230
    2300 -> 2.3K

    How to achieve this? I tried to create a converter however I couldn't use the converter in the legend.
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 13 May 2011 Link to this post

    Hi Abdulhameed,

    You can use MapLegend.Format property to format numbers that are visible in the legend. This property accepts standard .NET format strings. You can find more information here:

    Unfortunately the kind of formatting when numbers which less then 1000 are shown as is and numbers which more than 1000 are shown as 1K is not possible using Silverlight format strings only.

    We are planning to allow using of the arbitrary strings as map range labels in the MapLegend control in the future releases of the RadMap. You can check availability of this feature using our PITS:

    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
Back to Top