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

map legend

1 Answer 95 Views
Map
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Abdulhameed
Top achievements
Rank 1
Abdulhameed asked on 11 May 2011, 10:37 AM
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.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 13 May 2011, 07:32 AM
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:

http://msdn.microsoft.com/en-us/library/0c899ak8.aspx

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:

http://www.telerik.com/support/pits.aspx#/public/silverlight/5945

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
Tags
Map
Asked by
Abdulhameed
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or