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

Click on the segements of Rad PieChart for Silverlight

1 Answer 40 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Zeeshan
Top achievements
Rank 1
Zeeshan asked on 25 May 2011, 07:32 AM
Hi
Is it possible to click on the segements (Slices) of a Pie Chart ?I mean suppose i click on the particular segement ,i want to open some popup window containing data related to that segement.I tried it using  ChartArea_itemClick event,but it does not fire.Below is the code


.xaml
<telerik:RadChart x:Name="Via3DPieChart" Background="{x:Null}" >
                <telerik:RadChart.DefaultSeriesDefinition>
<telerik:Pie3DSeriesDefinition/>
            </telerik:RadChart.DefaultSeriesDefinition>
<telerik:RadChart.DefaultView>
<telerik:ChartDefaultView>
<telerik:ChartDefaultView.ChartArea>
<telerik:ChartArea ToolTipService.ToolTip="{Binding OptionText}" LegendName="chartLegend" ItemClick="ChartArea_ItemClick"/>
</telerik:ChartDefaultView.ChartArea>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
                    
        </telerik:RadChart>



.cs
 public void ChartArea_ItemClick(object sender, ChartItemClickEventArgs e)
        {
            MessageBox.Show("SomeValue");
           
        }

Help me out Please!

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 26 May 2011, 11:19 AM
Hello Zeeshan,

Interactivity effects (click, selection, hover) are supported for 2D series only so if you need to handle the ItemClick event for pie slices in your scenario, you will need to use the 2D pie series instead of Pie3D.


Regards,
Giuseppe
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart
Asked by
Zeeshan
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or