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

Pageheader and reportheader

4 Answers 185 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Koen L
Top achievements
Rank 1
Koen L asked on 25 Jun 2010, 08:43 AM
I'm pulling my hair out on this problem.

What i need is a report where we have a reportheader and a pageheader.
The Pageheader should not appear on the firstpage, witch can be done using the PrintOnFirstPage=False.
When u use this workingmethod the Pageheader space will be reserved on the first page anyway.
So when my pageheader has a height of 2cm it will have a blank space of 2cm on my first page.
To me thats not a feature but a bugg, i can't see this as logic behavior. When i say, don't show the pageheader on the first page i don't wanne see a blank space :O|. (sorry its frustrating me)

I tried to use a groupheader in the detail section, with a panel in it. Then use the ItemDataBind event to check if i am on the first page or not. I did this with with a bool and i was planning to set the panel visible when i'm not on the first page.
But the ItemDataBind event gets only called once. Not on every page.

So i'm looking for an event that gets called on every page so i can set the panel visible true/false depending on what page i'm at.

Or another solution where i can use a reportheader and a pageheader (that don't show on the first page and don't give me with space).

I like the reporting tool so far tho. I kinda used all the features it has and it works fine. Just this one is annoying me bad.

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Jun 2010, 03:07 PM
Hi Koen L,

Page headers/footers are not related to the report itself, but are relative to the margins of the report's media, i.e. to the paper or screen, so this is the expected behavior. The space they've taken up would always be preserved no matter whether there is content shown or they are not visible and this behavior cannot be changed.
Using unbound group (no grouping criteria) with PrintOnEveryPage is what can be used for your case. Instead of looking for an event, you can use Conditional Formatting to hide the panel. It is worth to note that you should set a really small height to both the panel and group header section, so they can expand only if needed. Otherwise even when you hide the panel, the space it used to occupy would remain.

All the best,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Koen L
Top achievements
Rank 1
answered on 28 Jun 2010, 12:15 PM
I am trying the goupheader with a panel in it.
But how do u suggest to hide/show the panel with the formatting rules?
I have no control over pagenumber at that point.
So i have nothing to know when threre will be more then one page. How can i set the panel visible false at my first page and visible at the next pages?
0
Accepted
Steve
Telerik team
answered on 29 Jun 2010, 02:37 PM
Hello Koen,

You are correct - in the context of report sections, you have no access to the PageNumber and PageCount. Unfortunately you cannot do this with events either, since as outlined in the Understanding Report Sections help article, the page section and its items are processed by the corresponding rendering extension after the report data has been processed. This means that you cannot get the PageNumber from an item in the PageSection and validate against it in report section, because the page section/item events would be fired after the report section have been bound.
We cannot offer a workaround for this behavior, as it is strictly following the current Report Life Cycle and is by design. However this functionality makes sense and we would consider changing the current behavior for subsequent versions of the product.

Please excuse us for the temporary inconvenience.

Best wishes,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Kelly Harris
Top achievements
Rank 1
answered on 17 Aug 2010, 04:50 PM
Hello, we have a need to be able to display different values in the header/footer depending on the page.
For one item, I want to display one piece of text ONLY on the first page and leave it blank on subsequent pages and not have any white space.
Another item, I want to display on the bottom/footer of a page the range of items that are located on the page.   For example, on page one we may have items "1 to 5", second page "6 to 12" and last page "13 to 18".  Any suggestions on how I can accomplish this?

Thanks,
Tags
General Discussions
Asked by
Koen L
Top achievements
Rank 1
Answers by
Steve
Telerik team
Koen L
Top achievements
Rank 1
Kelly Harris
Top achievements
Rank 1
Share this question
or