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

Which bar was clicked

3 Answers 79 Views
Chart
This is a migrated thread and some comments may be shown as answers.
scorp
Top achievements
Rank 1
scorp asked on 16 Mar 2011, 06:03 PM
http://demos.telerik.com/silverlight/#Chart/SortFilter
I have implemented a similar context menu as demonstrated in the demo. On the item click event however how can I figure out which Bubble was clicked at. Also after I do a right click on the Bubble to get the context menu and left click on the chart area the chart zooms in and displays "No Data".
Thanks.

3 Answers, 1 is accepted

Sort by
0
scorp
Top achievements
Rank 1
answered on 18 Mar 2011, 09:51 PM
I figured out from a previous forum post about which bubble was clicked. However I ran into another issue. How can I set the ItemsSource of the Contextmenu from the code behind instead of Binding in the xaml. I need to be able to set this to be able to have different menus for different bubbles.
Also after I do a right click on the Bubble to get the context menu and left click on the chart area the chart zooms in and displays "No Data".
0
scorp
Top achievements
Rank 1
answered on 21 Mar 2011, 03:38 PM
Having the context menu defined in the xaml declaration instead of having it in the controltemplate did the trick as in the below discussion.
http://www.telerik.com/community/forums/silverlight/chart/radcontextmenu-with-bar-chart.aspx

Only outstanding issue is after I do a right click on the Bubble to get the context menu and left click on the chart area the chart zooms in and displays "No Data".
0
Missing User
answered on 22 Mar 2011, 09:17 AM
Hi scorp,

We need more details on how you implement the RadChart and the context menu. To further trace the issue, it will be best if you open a formal support ticket, and send us a small working project, demonstrating the issue. We will debug it locally, and advise you further.

Regards,
Polina
the Telerik team
Tags
Chart
Asked by
scorp
Top achievements
Rank 1
Answers by
scorp
Top achievements
Rank 1
Missing User
Share this question
or