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

Currency Format

1 Answer 37 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 18 Dec 2012, 04:05 PM
With the follow xaml the tool tip is displayed with US $ even thou I have set the correct Culture (£) 


Public Sub New()
  InitializeComponent()
  Me.Language = XmlLanguage.GetLanguage(Thread.CurrentThread.CurrentCulture.Name)
End Sub


<
telerik:RadPieChart  x:Name="PieChartDeadStock" Palette="Windows8" Grid.Column="0" Grid.Row="0" >
                <telerik:RadPieChart.Behaviors>
                    <telerik:ChartTooltipBehavior HorizontalOffset="-6" VerticalOffset="-49" />
                </telerik:RadPieChart.Behaviors>
                <telerik:RadPieChart.TooltipTemplate>
                    <DataTemplate>
 
                        <Grid>
                            <Border BorderThickness="1" BorderBrush="Black" ></Border>
                            <StackPanel  Orientation="Vertical" Background="White" Margin="2,2,2,2" >
                                <TextBlock FontWeight="Bold" Text="{Binding Path=DataItem.Description}"/>
                                <TextBlock Text="{Binding Value, StringFormat='C'}" />
 
                            </StackPanel>
 
                        </Grid>
                    </DataTemplate>
                </telerik:RadPieChart.TooltipTemplate>
                <telerik:PieSeries  ShowLabels="True" RadiusFactor="0.7" ValueBinding="StockValue" ItemsSource="{Binding}">
 
 
                    <telerik:PieSeries.AngleRange>
                        <telerik:AngleRange  SweepAngle="360" />
                    </telerik:PieSeries.AngleRange>
                </telerik:PieSeries>
            </telerik:RadPieChart>

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 21 Dec 2012, 09:25 AM
Hi Andy,

It is a Silverlight issue which reflects the ToolTip behavior as well. As a workaround, try using ValueConverter.

Hope this helps.

Greetings,
Peshito
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Andrew
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or