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

Click Event on particular segement of PieChart

1 Answer 90 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Zeeshan
Top achievements
Rank 1
Zeeshan asked on 23 May 2011, 11:26 AM
Hi
ChartArea_itemClick event not firing.When i click on chart area it does not show message.Below is the code that i am using.Kindly help me out in this.

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("HELLO");
           
        }

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 26 May 2011, 08:42 AM
Hi 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.


All the best,
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