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

How to disable report auto-preview?

7 Answers 386 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 03 Mar 2013, 07:23 AM
I must set all report parameters to some default values. But before to view the report users must be able to change some parameters as the like. And only after the preview button is clicked the report must be generated. Now report is automatically generated unless all parameters are not supplied.
Who can help?
 

7 Answers, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 05 Mar 2013, 01:49 PM
Hello Victor,

Currently there is no option to prevent the report viewer from rendering the report if all the parameters have default values. One possible solution would be to leave one parameter without a value (probably the parameter with the least amount of options).

Greetings,
IvanY
the Telerik team

See what's new in Telerik Reporting Q1 2013. Register for the March 4 webinar to witness the impressive new visualizations in Telerik Reporting. Just for fun, 10 webinar attendees will be randomly selected to win a Telerik T-shirt and a $50 Gift Certificate to ThinkGeek. Register now! Seats are limited!

0
Eric
Top achievements
Rank 1
answered on 27 Aug 2014, 06:30 PM
Is there still no possibility of preventing report rendering when all parameters have default values?
0
Stef
Telerik team
answered on 29 Aug 2014, 01:30 PM
Hi Eric,

If all parameters have values the report processing will start on displaying the report, unless there is an error in the processing caught in the report's Error event. In the report's Error event you can cancel the further processing of the report and throw a custom error message in the viewer if needed.

Other approach beside providing erroneous values for the report parameters is to use custom UI, from which to refresh the viewer.


I hope the above information is helpful.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Eric
Top achievements
Rank 1
answered on 29 Aug 2014, 01:37 PM
Hi Stef,

Do you have a suggestion for a good way to force an error to occur before the report renders automatically?

Are there any plans to implement a feature of turning off the automatic render?

Thanks.
0
Stef
Telerik team
answered on 02 Sep 2014, 02:30 PM
Hello Eric,

A possible approach is to set default values for the report parameters, which cause an error (exception) in the data retrieval (even thrown on purse based on the received values) or in the report processing for an expression.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Rodrigo
Top achievements
Rank 1
answered on 27 Nov 2017, 03:07 PM

Hi just to be sure, its still no option to stop the rendering until we have the parameters entered by the user?

There is a possible work around?

 

Thanks in advance!

 

0
Katia
Telerik team
answered on 30 Nov 2017, 10:11 AM
Hello Rodrigo,

The behavior of the viewers did not change. If the report has parameters with valid default values it will be rendered in the viewer, there is no option to stop the rendering. 

To prevent the report from rendering you can leave a Value property of at least one parameter blank. This will show the notification in the report viewer area about missing parameter values which prompts the end user to enter valid values for all parameters.


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