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

Multiple header/lines report

1 Answer 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nils
Top achievements
Rank 1
Nils asked on 16 Nov 2016, 12:23 AM

Hi Guys,

 

I have a data structure like this:

 

Headers

ID  Desc
1   Head1
2   Head 2

------------------------------------------

Lines

ID   HeadID
1    1
2    1
3    1
4    2

 

Etc. is there a possiblity to handle this inside on report so that it shows the header + the lines for this header and then breaks the page and continues with the next header?

Also is there a way to show the page no not based of the total pages but based of the "sub documents" e.g. page per Header in my case?

 

Cheers

 

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 16 Nov 2016, 07:54 AM
Hello Nils,

The described scenario can be achieved by adding groups to the report - How to: Add groups to Report. In the GroupHeader section, you can place the data filed with header name and in the Detail section the data field with - Report Structure.

Note, that the data from the two tables needs to be joined as the report can have only one data source.

Group-based pagination is not supported out-of-the-box. You can check Reset PageNumber per Report Group blog post providing a sample approach for resetting the page number for each group.


Regards,
Katia
Telerik by Progress
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
Nils
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or