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

RadPieChart - losing UI events

2 Answers 88 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marius
Top achievements
Rank 1
Marius asked on 21 Jun 2015, 06:25 AM

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"
PaletteName="DefaultLight"
Palette="{StaticResource CustomPalette}"
VerticalAlignment="Stretch"
RenderTransformOrigin="0.5,0.5"
Visibility="{Binding LoadingOrEmptyResponse, Converter={StaticResource boolToVisibility}, ConverterParameter='i'}"
EmptyContent=""
Grid.Column="1"
Margin="0,0,33,0"
MaxWidth="700"
MaxHeight="700">
<tChart:RadPieChart.Behaviors>
<!--<local:RotatePieChartBehavior SelectedItem="{Binding SelectedItem}" />-->
<tChart:ChartSelectionBehavior SelectionChanged="ChartSelectionBehavior_SelectionChanged"/>
</tChart:RadPieChart.Behaviors>
<tChart:DoughnutSeries ShowLabels="True"
ItemsSource="{Binding Items}"
RadiusFactor="1"
InnerRadiusFactor="0.35"
HighlightBrush="{x:Null}"
SelectedPointOffset="0">
<tChart:DoughnutSeries.LabelDefinitions>
<tChart:ChartSeriesLabelDefinition Strategy="{StaticResource mychartserieslabelstrategy}" />
</tChart:DoughnutSeries.LabelDefinitions>
<!--<tChart:DoughnutSeries.LabelDefinitions>
<tChart:ChartSeriesLabelDefinition Margin="-10">y
<tChart:ChartSeriesLabelDefinition.Binding>
<tChart:PropertyNameDataPointBinding PropertyName="name"/>
</tChart:ChartSeriesLabelDefinition.Binding>
</tChart:ChartSeriesLabelDefinition>
</tChart:DoughnutSeries.LabelDefinitions>-->

<tChart:DoughnutSeries.ValueBinding>
<tChart:PropertyNameDataPointBinding PropertyName="amount" />
</tChart:DoughnutSeries.ValueBinding>
<tChart:DoughnutSeries.LegendTitleBinding>
<tChart:PropertyNameDataPointBinding PropertyName="name" />
</tChart:DoughnutSeries.LegendTitleBinding>
</tChart:DoughnutSeries>

</tChart:RadPieChart>

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 25 Jun 2015, 06:58 AM
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,
Ves
Telerik
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
0
Marius
Top achievements
Rank 1
answered on 09 Jul 2015, 02:01 PM
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.
Tags
Chart
Asked by
Marius
Top achievements
Rank 1
Answers by
Ves
Telerik team
Marius
Top achievements
Rank 1
Share this question
or