Updated Telerik to current version, Labels no longer show

2 posts, 0 answers
  1. Steven
    Steven avatar
    1 posts
    Member since:
    Oct 2010

    Posted 09 Sep Link to this post

    we have recently updated to the current Telerik version from a 2013 version.  We have the following


    <telerik:RadPieChart Palette="Windows8" Grid.Column="0" Grid.Row="0" ToolTip="Mill Department">


        <telerik:PieSeries ValueBinding="CountOfMachines" ShowLabels="True" ItemsSource="{Binding MachinesUsedYesterByCustomerInMill}" RadiusFactor="0.35">


              <telerik:ChartSeriesLabelDefinition Binding="Customer" Margin="-8,0,0,0">




                                 <TextBlock Text="{Binding DataItem.Customer}" Margin="0"/>











    Before the upgrade this worked fine, now the chart still comes out, but no labels are on it.  What needs to change to have the labels show up now?

  2. Dinko
    Dinko avatar
    183 posts

    Posted 13 Sep Link to this post

    Hi Steven,

    Looking at the provided code snippet we can see that you have set the Binding property of the ChartSeriesLabelDefinition and you have set a custom DataTemplate to the Template property . You can try two approaches.

    You can try removing the Binding property of the ChartSeriesLabelDefinition
    <telerik:ChartSeriesLabelDefinition Binding="Customer"  Margin="-8,0,0,0">


    You can remove the DataItem.Customer from the binding of the Text property.
    <TextBlock Text="{Binding}" Margin="0"/>

    Give these two approaches a try and let us know if they work for you.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top