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

Table Row Groups Headers Won't Print on Every Page

5 Answers 260 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joe Schick
Top achievements
Rank 1
Joe Schick asked on 27 Feb 2013, 08:38 PM
Hi,

I can't get the table row group headers in a report I'm designing to repeat on every page. Here's the table group structure I have

ParentGroup
Static
Static
Detail Group

I would like the two static rows to be repeated when a group spans multiple pages. I'm using Q1 2013.

Thanks,

Joe

5 Answers, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 01 Mar 2013, 01:34 PM
Hi Joe,

The Table item has the following properties 
Which will force the Row / Column headers to be printed on every page.
However, this applies only to the headers and you cannot have the body rows to be repeated on every page. 
 

Regards,
Elian
the Telerik team

See what's new in Telerik Reporting Q1 2013. Register for the March 4 webinar to witness the impressive new visualizations in Telerik Reporting. Just for fun, 10 webinar attendees will be randomly selected to win a Telerik T-shirt and a $50 Gift Certificate to ThinkGeek. Register now! Seats are limited!

0
Joe Schick
Top achievements
Rank 1
answered on 01 Mar 2013, 02:00 PM
I'm using an object data source which has a several properties. My table is bound to one of these properties which an IEnumerable. It looks like I might be able to use a group header section to get the desired result, but then the report data source
would have to be the IEnumerable, and I wouldn't have some of the other properties that I need.

How do you recommend I achieve the desired result? 


Thanks,

Joe
0
Elian
Telerik team
answered on 04 Mar 2013, 10:08 AM
Hi Joe,

The expressions used in the table (including the headers) are evaluated in the context of the table's data-source. If the data needed for the table headers is available in the parent item's data-source, you can access it with the following expression:
= ReportItem.ParentElement.DataObject.FieldName

If you need further assistance, please share with us what is the structure of your data-source and what report layout are you trying to achieve, so we could advise you accordingly. 
 
Kind regards,
Elian
the Telerik team

See what's new in Telerik Reporting Q1 2013. Register for the March 4 webinar to witness the impressive new visualizations in Telerik Reporting. Just for fun, 10 webinar attendees will be randomly selected to win a Telerik T-shirt and a $50 Gift Certificate to ThinkGeek. Register now! Seats are limited!

0
Joe Schick
Top achievements
Rank 1
answered on 04 Mar 2013, 02:14 PM
My data source is an object data source with the following structure.

class ScheduleSource {
string ScheduleName
DateTime FromDate
DateTime ToDate
IEnumerable<LoadItem> Loads
}

class LoadItem {
Guid LoadTypeId
string LoadTypeValue
string DriverName
etc
}

The report layout looks like what follows. The report's data source is ScheduleSource, and the table is bound to Loads and grouped by LoadTypeId.

<ScheduleName>, <FromDate>, <ToDate> (in report head section)

<LoadTypeValue>
<DriveName>|<other LoadItem fields....> (these are column headers for the group body)

I don't have a problem getting the above layout to work. My problem is having LoadTypeValue and the LoadItem column headers repeat when the grouping spans multiple pages. Please let me know if there is a way to achieve this result.

Thanks,

Joe

0
Elian
Telerik team
answered on 07 Mar 2013, 09:19 AM
Hello Joe,

In your current data-structure the fields LoadTypeValue and LoadItem should be in the body of the table and not in the headers since when you group by LoadTypeId it is possible to get more than one item in a group, therefore getting more than one LoadTypeValue and LoadItem. As said before, the only items that can be repeated on each page are the headers, so with your current data-structure repeating these fields is not possible.

If all LoadItem-s for concrete ScheduleSource have one and the same LoadTypeId and LoadTypeValue, you do not need the grouping in the table and may out those fields in the column header of the table. And headers of the table do support repetition on pages.
 
Kind regards,
Elian
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Tags
General Discussions
Asked by
Joe Schick
Top achievements
Rank 1
Answers by
Elian
Telerik team
Joe Schick
Top achievements
Rank 1
Share this question
or