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

checkbox in Report designer

4 Answers 935 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Web
Top achievements
Rank 1
Web asked on 22 Jan 2020, 08:23 PM

Hi,

 

I would like to use checkbox in my report.

Selecting check box should display data and deselecting should not display data in report.

How to achieve above in Telerik report designer.

Thank you.

4 Answers, 1 is accepted

Sort by
0
Veronika
Telerik team
answered on 27 Jan 2020, 01:58 PM

Hi,

The easiest way to achieve the desired outcome is by setting an Action to the checkbox. Here are the steps.

First, create a report parameter from Type Boolean, let's name it Parameter1. Set it visibility to false, If you do not want to see it in the Parameters area.

Second, place everything that should be hidden in a panel and set its Visible property based on a Parameter1 value. Here it is used Binding dialog.

And finally,  set the Action, Navigate to Report, to the checkbox. The action should navigate to the same report but with the updated report parameter value.

Bind the checkbox value to the Parameter1 value. Set it Text to be different by using the expression window. Something like this:

= IIf(Parameters.Parameter1.Value, "Hide the section", "Show the section")
And, volya. This is all.

The attached report demonstrates the approach. Let us know if you have further questions.

Regards,
Veronika
Progress Telerik

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 Feedback Portal and vote to affect the priority of the items
0
Web
Top achievements
Rank 1
answered on 28 Jan 2020, 08:33 PM

In Action section, Parameter value is not showing in "Edit Parameters".

0
Accepted
Neli
Telerik team
answered on 29 Jan 2020, 12:41 PM

Hello,

Make sure that you have saved the report after adding the report parameter. If this doesn't solve the issue, consider sending us the problematic report.

Regards,
Neli
Progress Telerik

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 Feedback Portal and vote to affect the priority of the items
0
Web
Top achievements
Rank 1
answered on 29 Jan 2020, 06:46 PM
It worked. Thanks!
Tags
General Discussions
Asked by
Web
Top achievements
Rank 1
Answers by
Veronika
Telerik team
Web
Top achievements
Rank 1
Neli
Telerik team
Share this question
or