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

Check/Capture Drillthrough Reports

3 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yves
Top achievements
Rank 1
Yves asked on 28 Nov 2012, 01:28 PM
Hi Telerik team ,

I've an .aspx webpage where i attach a report A to the reportviewer.
Report A contains a action(navigate to report) to Report B.

How can I check in my webpage if Drillthrough has been fired?

Regards

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 30 Nov 2012, 03:17 PM
Hi Yves,

The Actions in Telerik Reporting are for internal usage by the viewers only and they are not intended to be used as part of the application hosting the reporting engine. Can you elaborate what is your scenario, so we can advise you accordingly?

Regards,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Yves
Top achievements
Rank 1
answered on 03 Dec 2012, 04:08 PM
Hello Steve,

I've a chart(bar) which renders a count of series: see screenshot_4.png in attachments.
I needed an dropdown next to the chart to add series to the chart.

Behind the barchart there is a drillthrough report, so when in click on the bar chart the second chart is shown: see screenshot_5.png
The problem is: i need to get rid of the dropdown when drillthrough is clicked.

The reason of the dropdown: customer decision and need for jscipt: screenshot_6.png

Excuse me of the awful painting :-) and thanks for any help.

Yves




0
Steve
Telerik team
answered on 06 Dec 2012, 04:31 PM
Hello Yves,

Thank you for the description, however we're not sure we understand all of it:
  1. You cannot have a dropdown inside a Telerik Report, is that dropdown your UI or part of the report viewer report parameters?
  2. We do not see any charts on screenshot_5.png, only a table.
  3. When you trigger a drill-through action, the whole report is replaced with a new one i.e the report viewer unloads the first report and load the new one. So if the new report does not have a report parameter, there would not be a drop-drown created in a first place.

If that drop-down list is part of your own UI, then there is no out of the box solution. A hacky workaround that you can use is to subscribe to the OnReportLoaded event, detect if a report is loaded and hide the dropdown:

<telerik:ReportViewer ID="ReportViewer1" runat="server" />
<script type="text/javascript">
ReportViewer.prototype.OnReportLoadedOriginal = ReportViewer.prototype.OnReportLoaded;
  
ReportViewer.prototype.OnReportLoaded = function () {
    this.OnReportLoadedOriginal();
//do your thing here
}
</script>

All the best,

Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

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