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

DrillThrough to report in RadWindow

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sheila
Top achievements
Rank 1
Sheila asked on 11 Jul 2013, 09:09 PM
Is it possible to have the DrillThrough report target be a radwindow?
I want to display the drillthrough report in a modal popup window.

1 Answer, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 15 Jul 2013, 02:17 PM
You must override the NavigateToUrl function:
<telerik:ReportViewer ID="ReportViewer1" runat="server" Style="border: 1px solid #ccc;" Width="99%" Height="99%" />
    <script type="text/javascript">
        ReportViewer.OnReportLoadedOld = ReportViewer.prototype.OnReportLoaded;
        ReportViewer.prototype.OnReportLoaded = function () {
            this.OnReportLoadedOld();
 
            var iframeID = this.clientID + "ReportFrame";
            var iframe = document.getElementById(iframeID);
            iframe.contentWindow.NavigateToUrl = function (address) {
                alert("Address: "+address);
            }
        }
</script>
Tags
General Discussions
Asked by
Sheila
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Share this question
or