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
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:
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:
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