How do I programmatically set the datasource for a graph? I've created the NeedDataSource event handler and it gets called but I cannot work out how to cast the sender in order to set the datasource:
void graph1_NeedDataSource(object sender, EventArgs e)
{
(sender as Telerik.Reporting.Processing.?).DataSource = GetGraphData();
}
I've tried casting to a Telerik.Reporting.Processing.Chart and a Telerik.Reporting.Processing.DataItem both of which do not work. The object appears to be a Telerik.Reporting.Processing.Graph but that is not accessible.
TIA
Nic