Hello everybody,
Because it is not possible to create two different headers I thought a workaround would be to display a page header on the first page and a summary header on all other pages. To do this I need to set the databinding of the visible property of both sections. I tried "=Global.CurrentPage > 1" and "=if(Global.CurrentPage > 1, True, False)" on the summary header but it does not work. The header is never shown although the pagenumber is correctly displayed on every page.
Do I use the wrong syntax or is it not possible this way?
With regards,
Remko Pleijsier
Hi Remko,
Your expressions look fine and I've used them in a sample to reproduce the behavior. I'm not sure why it's not working but it appears we are already aware of this issue. Checking the development issue database yields an existing issue for this same thing. As a result I have opened up a private case for you. The case number is CAS-124884-T5B7D4. You can access the case from here: https://es.infragistics.com/my-account/support-activity
This case has been linked to development issue 141608 which pertains to this issue.
As a workaround, depending on how your headers are designed, you can hide them by hiding the individual pieces that make up the header by setting their colors to Transparent using those expressions. For example, if I had a label that I only wanted to show on page 1 you could setup an expression attached to the Foreground property like this:
If(Global.CurrentPage = 1, "Black", "Transparent").
This will set the foreground to Transparent effectively hiding the label but only for the first page. Every page after that will have a visible label. I have tested this and it worked quite well.