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

Table in detail of group WPF

1 Answer 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Samuel
Top achievements
Rank 1
Samuel asked on 29 Sep 2015, 12:02 PM

I have a WPF app and am using the latest 2015 packages.  I have a report where the datasource is an IEnumerable of business objects which I set in the code behind.

this.DataSource = ListOfItems;

 

I have a single group where the header displays one field of my object.  The details section contains a table that should show the rest of the object properties. The groups work fine this way, but the table does not.   The table shows several empty rows.  And also, the column headers are repeated for each row.  I found a previous post http://www.telerik.com/forums/table-in-detail-section-of-group and set the binding for the table datasource as instructed.  This fills out the rows in the table, but the column headers are still duplicated for every single row.

 

Please advise.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 01 Oct 2015, 03:17 PM
Hi Samuel,

The report is a template repeated for each record in the assigned data. Thus there will be produced as many Detail sections as rows per group of data in case - Report Structure. Since the Table item is in the Detail section, it will be repeated along with the rest content of the section.

My recommendation is to use the data-binding approaches elaborated in How to use the ReportItem.DataObject property in expressions and How to Databind to Collection Properties, in order to bind the Table item to the corresponding groups' data. Also move the Table item in the GroupHeader/FooterSection to avoid the repetition.


I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Samuel
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or