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

Get Page Number in code

1 Answer 181 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bob Mills
Top achievements
Rank 2
Bob Mills asked on 05 Feb 2014, 07:35 AM
There is  a barcode in pagefootersection. I need to set its value and make it conditionally visible through code. I am able to set its value in code but to implement visible conditionally I need to use Pagenumber object and I am not able to refer this object.I can use it in design but not getting a way to refer it in code. How to refer pagenumber object in code? I want to display barcode if pagenumber=1 and set its value in code.



Babita Banerjee

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 07 Feb 2014, 12:08 PM
Hello Babita,

Our recommendation is to set the Barcode visibility conditionally with a Binding using the PageNumber global object that is available in the context of page sections:
For example:
Property path  Expression 
 Visible  =PageNumber=1

Regards,
Peter
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Bob Mills
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or