is there any way to access the radchart who invoked the method???
i only can access to the bar. whne i debug i can see that the bar has a private variable "parent" that references to the RadChart.
but the public property "Parent" is null.
1 Answer, 1 is accepted
0
Giuseppe
Telerik team
answered on 23 Mar 2009, 10:51 AM
Hello dennis,
You can get access to the chart parent by walking the visual tree of the control like this:
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Charting;
namespace SilverlightApplication2
{
public partial class Page : UserControl
{
public Page()
{
InitializeComponent();
DataSeries series = new DataSeries() { new DataPoint(1,10), new DataPoint(2,20), new DataPoint(3, 30) };