I have a pie chart that the user needs to be able to click and run a detailed report. However infragistics seems to be eating the MouseLeftButtonDown event when you click inside the pie area. If you click outside the pie area, you get the event. But the pie area is where anyone would expect to click -not in empty space outside the pie.
<igWebChart:XamWebChart Cursor="Hand" DataContext="{Binding DashboardEndpoints.Endpoints.PolicyStatus}" MouseLeftButtonDown="_chartEndpointPolicy_MouseLeftButtonDown"> <igWebChart:XamWebChart.Legend> <igWebChart:Legend Visibility="Visible" /> </igWebChart:XamWebChart.Legend> <igWebChart:XamWebChart.Series > <igWebChart:Series ChartType="Pie" StrokeThickness="1" DataMapping="Value=PercentValue;Label=Key;ToolTip=ToolTip" DataSource="{Binding}" /> </igWebChart:XamWebChart.Series></igWebChart:XamWebChart>
Is there some way around this besides switching to someone elses control? I've tried attaching the handler on the series as well, but it has the same result.
Regards, -Mark
Graham, that did it.
Thank you very much. -Mark
Mark,
Do you just want access to the data item that was clicked? Try the DataItemMouseLeftButtonDown event instead, see: http://community.infragistics.com/forums/p/31516/173703.aspx#173703
Or are you trying to accomplish something different? Let me know if this helps.
-Graham