Hello! I apologize for my poor English first.
I am a beginner on Telerik Report. I have to create a Pie chart that displays a datasource's data. Make my point clear:
I am making a Report build on three lists of objects, one object of every list it's named: Status (it can be: Open, On track, Cancelled etc...).
The chart should displays the average of every "Status" inside the three lists of the Report in percent (for example: Open 100%; Open 50%, Open 75% etc...)
The problem is: I don't know how to bind via code the Chart with the ObjectDataSource, I am using Graph Wizard.
I wrote this code
private void graph1_NeedDataSource(object sender, EventArgs e)
{
Telerik.Reporting.Processing.Chart chart = sender as Telerik.Reporting.Processing.Chart;
chart.DataSource = CbpGlobalInitiativesUsdByCountryFollowUpStructure; //it's the DataSource of the entire Report
}
The Binding of the graph already has "Property path: DataSource", "Expression: =Field.List1 =Field.List2 =Field.List3"
I saw a tutorial and at this point the chart should already works, instead nothing happens!
Where am I get wrong?
Thank you,
Angelo