RadPieChart - losing UI events

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"
    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. Ves
    Admin
    Ves avatar
    2879 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,
    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
  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