Click Event on particular segement of PieChart

2 posts, 0 answers
  1. Zeeshan
    Zeeshan avatar
    12 posts
    Member since:
    Dec 2010

    Posted 23 May 2011 Link to this post

    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");
               
            }
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 26 May 2011 Link to this post

    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
Back to Top