How to display textbox only in report header when report first opens

2 Answers 52 Views
General Discussions Report Designer (standalone)
Toya
Top achievements
Rank 1
Iron
Iron
Toya asked on 12 Dec 2024, 09:03 PM

I am trying to display a textbox in the report header when the page is first opened and no parameters have been selected. Something like "Please select parameters to view report." I am trying to do this by creating a binding on the textbox like this "=IIf(Parameters.Plant.Value Is Nothing, True, False)" So if the plant parameter is blank (which it would be), display the text box otherwise do not.

I can't get this to work. Can you give me some insight as to what I may be doing wrong?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Toya
Top achievements
Rank 1
Iron
Iron
answered on 18 Dec 2024, 09:09 PM
I was able to solve this by creating report header and placing the textbox there. Then the code I had worked.
Todd
Top achievements
Rank 1
Iron
commented on 03 Jan 2025, 06:53 PM

Good work around!
0
Ivet
Telerik team
answered on 17 Dec 2024, 04:09 PM

Hi Toya,

Thank you for reaching out.

Using the AutoRun property, when there are no parameters it will display the "Please select parameters to view the report" message to the user.

For more information, you can use this Properties and Settings of the Report Definition - Telerik Reporting article.

Note that this functionality was added with the latest version of the product - Telerik Reporting - Progress® Telerik® Reporting 2024 Q4 (18.3.24.1112).

If further questions arise do not hesitate to ask.

Regards,
Ivet
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Toya
Top achievements
Rank 1
Iron
Iron
commented on 17 Dec 2024, 06:18 PM

We are on 2022 version. Is there another way to make this happen in our version?

Thank you

Tags
General Discussions Report Designer (standalone)
Asked by
Toya
Top achievements
Rank 1
Iron
Iron
Answers by
Toya
Top achievements
Rank 1
Iron
Iron
Ivet
Telerik team
Share this question
or