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

ASP.NET Set Parameters Visible property programmatically

1 Answer 271 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
steven
Top achievements
Rank 1
steven asked on 25 Apr 2016, 10:25 AM

Hi,

I've been trying to set a specific parameters visible property based on another parameters value.

I have a boolean parameter that allows the displaying of more data in the report.

I have a 2nd boolean parameter that is hidden. If set to false the 1st bool parameters visible property to should then be set to false.

At the point of construction of the report, I check both 

 this.Report.ReportParameters["IsParamVisible"];

 this.ReportParameters["IsParamVisible"];

but the values are never set at that point so they do nothing.

How do I do this?

I'm using Telerik Reporting Q2 2015

 

Cheers

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 27 Apr 2016, 03:55 PM
Hello Steven,

Report parameters visibility cannot be controlled via expression and other parameters. Parameters are shown or hidden by report definition on report preview in a viewer.

If you use HTML5 Report Viewer for displaying reports, you can hide the default parameters area and add custom parameters editors with your own //js logic to show/hide parameters editors.
Check How To: Create a Custom Parameter Editor and 
How To: Pass Values to Report Parameters help articles for more detailed information.


Regards,
Katia
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
Tags
General Discussions
Asked by
steven
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or