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

Disabling/hiding export and refresh buttons before report is generated

3 Answers 254 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hugues Ferland
Top achievements
Rank 1
Hugues Ferland asked on 04 May 2012, 06:47 PM
Hi,

We regularly encounter a problem with our reports.  Some user opens a report page, then, omits filling all the required fields parameters and then clicks on the Export or Refresh button.  Because the parameters are not filled, the report crashes with an exception, which we can handle, but it would be a lot more convenient to prevent the user from clicking the buttons beforehand.  Is there a convenient way to do that. 

For your information, we tried setting the "ShowRefreshButton" and "ShowExportGroup" to False on the Load event and setting them to True on the NeedDataSource event.  Unfortunatly, even if the NeedDataSource event is triggered and the setters properly set to True, the buttons won't be visible after the report is generated. 

Regards,

3 Answers, 1 is accepted

Sort by
0
Hugues Ferland
Top achievements
Rank 1
answered on 04 May 2012, 06:52 PM
We forgot to mention that the behavior of the Print and Preview buttons are ok : nothing happens when the user clicks on them and a required parameter is not filled.  We would have expected the Refresh and Export button to behave the same.

Thanks
0
Accepted
Steve
Telerik team
answered on 08 May 2012, 11:35 AM
Hello Hugues,

You have not mentioned the most important thing - which is Telerik reporting version and which is the report viewer you're using, We've tested with the latest version of the product all of our viewers and in all cases, when a report parameter is required and is not filled, the Export combo is disabled. The Refresh button on the other hand only reloads the last report in the viewer, it does not take into consideration parameter values, so no crashes there either.

We would need additional information and if necessary step by step instruction on how to replicate that.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Hugues Ferland
Top achievements
Rank 1
answered on 08 May 2012, 09:18 PM
Thank you,

We are using version 4.0.10.423.  We'll try to upgrade to the latest version.

Tags
General Discussions
Asked by
Hugues Ferland
Top achievements
Rank 1
Answers by
Hugues Ferland
Top achievements
Rank 1
Steve
Telerik team
Share this question
or