RadPieChart - losing UI events

Thread is closed for posting
3 posts, 0 answers
  1. Marius
    Marius  avatar
    3 posts
    Member since:
    Apr 2012

    Posted 21 Jun 2015 Link to this post

    I have a RadPieChart (see below). After a few selections (click, tap) I stop getting any more selection events in my ChartSelectionBehavior_SelectionChanged method. I may still get one or more selections after a few more tries but that's very sporadic. I have not observed any particular pattern (pie segment size, other intervening events). Any other ideas for debugging this?


    <tChart:RadPieChart ClipToBounds="False" x:Name="MyPieChart"
    Palette="{StaticResource CustomPalette}"
    Visibility="{Binding LoadingOrEmptyResponse, Converter={StaticResource boolToVisibility}, ConverterParameter='i'}"
    <!--<local:RotatePieChartBehavior SelectedItem="{Binding SelectedItem}" />-->
    <tChart:ChartSelectionBehavior SelectionChanged="ChartSelectionBehavior_SelectionChanged"/>
    <tChart:DoughnutSeries ShowLabels="True"
    ItemsSource="{Binding Items}"
    <tChart:ChartSeriesLabelDefinition Strategy="{StaticResource mychartserieslabelstrategy}" />
    <tChart:ChartSeriesLabelDefinition Margin="-10">y
    <tChart:PropertyNameDataPointBinding PropertyName="name"/>

    <tChart:PropertyNameDataPointBinding PropertyName="amount" />
    <tChart:PropertyNameDataPointBinding PropertyName="name" />


  2. Ves
    Ves avatar
    2914 posts

    Posted 25 Jun 2015 Link to this post

    Hi Marius,

    I am afraid we are not aware of such issue with the control. I have attached a small example, based on your code. Can you please run it and observe the output window, where you should see the count of selections/deselections.

    I noticed that you have set both Palette and PaletteName properties. In this case the chart will only respect the value of Palette, but that does not seem to be related to the behavior you observe. I am not sure if I can provide you with any clues apart from the obvious -- make sure that the chart is not overlapped by another control or a layer which handles the clicks/taps. As an addition, you can set the SelectionPalette or SelectionPaletteName property of the control. This will provide you with a visual clue if the item is actually selected.

    Finally, if you are able to reproduce the problem in a stand-alone runnable project (or modify the attached example), please open a support ticket and send it to us, so that we can investigate it.

    Best regards,
    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 Feedback Portal and vote to affect the priority of the items
  3. Marius
    Marius  avatar
    3 posts
    Member since:
    Apr 2012

    Posted 09 Jul 2015 in reply to Ves Link to this post

    Seems like the problem was caused by using a negative angle in the AngleRange. Once I normalized my angle to positive, < 360 seelction behavior started working again.
Back to Top