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

Check if last page?

2 Answers 513 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emil Einarsson
Top achievements
Rank 1
Emil Einarsson asked on 30 Nov 2010, 10:47 AM
Hello.

Is it possible to have a conditional formatting checking if its the last page?

I have a report footer now but I always want it to always end up on the bottom no matter how much fill there is in the last page. Just above the page footer. Couldn't get this working so maybe I can solve this by doing this in a panel and hide the panel if its not the last page and place it in the page footer.

Can I do this?

/E

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 02 Dec 2010, 04:40 PM
Hello Emil Einarsson,

In order to display a Panel item only on the last page within a Page Footer our suggestion is to set a Binding to the item's Visible property:
Property path   Expression
 Visible  =PageCount= PageNumber

However you will not be able to change the Page Footer's height dynamically because the data processing and the paging are two separate processes. As explained in the Understanding Report Sections help article, the page sections and their items are processed by the corresponding rendering extension in the last step of the report generation.

Kind regards,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Emil Einarsson
Top achievements
Rank 1
answered on 03 Dec 2010, 04:41 PM
I'll be fine without dynamic height I think. :)

Thank you.
Tags
General Discussions
Asked by
Emil Einarsson
Top achievements
Rank 1
Answers by
Peter
Telerik team
Emil Einarsson
Top achievements
Rank 1
Share this question
or