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

Defining chart values when binding information.

1 Answer 123 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 21 Nov 2008, 06:08 PM
Hi

I have been working with charting for telerik reporting, and I have to render a chart for each row in the report. The chart should display values depending on the values of the row. Is there a way to know the value of the row when the NeedDataSoourcet event of the chart is called?? or can I change the datasource of the Chart in the ItemDataBound or ItemDataBinding events of the detail section?? or Can this be accomplished by any way?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Nov 2008, 01:38 PM
Hello Ivan,

The DataItem property of the processing chart should contain the data you're looking for:

Telerik.Reporting.Processing.Chart chart = sender as Telerik.Reporting.Processing.Chart;
DataRowView dataItem = (DataRowView)chart.DataItem;

All the best,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Ivan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or