PieSeries OffsetFromCenter not being reapplied after Selection

2 posts, 0 answers
  1. Manthravadi
    Manthravadi avatar
    6 posts
    Member since:
    Jan 2013

    Posted 03 Mar 2013 Link to this post

    I've observed that when a Slice is selected and deselected again in the PieSeries, then the Offset which is set in the <PieDataPoint/> tag is not being applied anymore and the slice/piedatapoint loses the offset that was set initially. Is this a bug or am I doing it wrong?

    [code]
    <telerik:RadPieChart>
    <telerik:PieSeries ShowLabels="False" SelectedPointOffset="0.03">
    <telerik:PieSeries.DataPoints>
    <telerik:PieDataPoint Value="27" OffsetFromCenter="0.02"/>
    <telerik:PieDataPoint Value="33" OffsetFromCenter="0.02"/>
    <telerik:PieDataPoint Value="40" OffsetFromCenter="0.02"/>
    <!--<telerik:PieDataPoint Value="33" OffsetFromCenter="0.02"/>-->
    </telerik:PieSeries.DataPoints>
    <telerik:PieSeries.AngleRange>
                <telerik:AngleRange StartAngle="270" SweepAngle="360" />
                </telerik:PieSeries.AngleRange>
    </telerik:PieSeries>
    <telerik:RadPieChart.Behaviors>
    <telerik:ChartSelectionBehavior DataPointSelectionMode="Single">
    </telerik:ChartSelectionBehavior>
    </telerik:RadPieChart.Behaviors>
    </telerik:RadPieChart>
    [/code]


    Also, how does the SelectedPointOffset property work? I don't see the effect of 0.03 offset for the selected slice when I select a slice - the offset is much more than that for the slice which is selected
  2. Nikolay
    Admin
    Nikolay avatar
    386 posts

    Posted 06 Mar 2013 Link to this post

    Hello,

    The reason you do not see any effect when setting SelectedPointOffset is due to a bug, which has already been fixed. The fix is available with our latest LIB, released on March 4th, which you can download from your account.

    When using SelectionBehavior, we would recommend setting the SelectedPointOffset property of the series, instead of an individual data point's OffsetFromCenter, which would only work on initial load, as you've discovered.

    All the best,
    Nikolay
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top