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

Format the detail section for each subreport item

2 Answers 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sarah
Top achievements
Rank 1
Sarah asked on 02 Mar 2010, 11:43 PM

Hello,
I'm fairly new to Telerik Reporting.  I am more familiar to ActiveReports by DataDynamics.  Their software package has an event called Detail_Format that allows you access to the detail section of each individual item in the subreport.  Is there a way to do this in Telerik SubReports?

I have attachd an image to help explain my issue.
There is 1 MainReport and 1 ColorReport (subreport).  I set the datasoure for the SubReport object (List<>) and all the data shows up int eh COlorReport properly. 

I want to now change the color of the Shape object in the detail section of ColorReport based on individual data in the datasource.  When I add a breakpoint in the method SubReport_ItemDataBinding, the subReport has all the items from the datasource list. 

It seems to me that SubReport in MainReport should have the full list, but ColorReport should only know about one data item at a time.

Could you please explain how to do this?
Thanks!
Sarah

2 Answers, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 03 Mar 2010, 02:29 PM
I guess this is what you're looking for: http://www.telerik.com/help/reporting/designing-reports-master-detail.html
Other threads I found that were really helpful to me:
  • http://www.telerik.com/help/reporting/understanding-events.html
  • http://www.telerik.com/help/reporting/designing-reports-understanding-report-sections.html
  • http://www.telerik.com/community/forums/reporting/telerik-reporting/how-to-display-hierarchical-collections.aspx

Cheers!



0
Sarah
Top achievements
Rank 1
answered on 03 Mar 2010, 06:06 PM
Thanks! 
The first 2 links were extremely helpful.  I'm not too happy about having to access each control's dataBound event separately, but I'm glad it's working.
Tags
General Discussions
Asked by
Sarah
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Sarah
Top achievements
Rank 1
Share this question
or