Currency Format

2 posts, 0 answers
  1. Andy
    Andy avatar
    12 posts
    Member since:
    Oct 2011

    Posted 18 Dec 2012 Link to this post

    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>
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 21 Dec 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top