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

Exception at AdjustReportAreaHeightInternal

1 Answer 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maxim Tairov
Top achievements
Rank 1
Maxim Tairov asked on 13 Jan 2012, 03:12 PM
I'm using web Report Viewer with Ajax in next scenario:
Report is showed after push button(Ajax request to server), and after next push to button Report is unloaded.
But after unload report viewer (set Visible=false), AdjustReportAreaHeight continue to raise. In result I see javascript error "reportTable is null" each time when page is resized.
See below piece of your code. Error raised at "reportTable.rows[reportTable.rows.length - 1]"

ReportViewer.prototype.get_Height = function ()
{
var reportTable = document.getElementById(this.reportTableId);
var lastRow = reportTable.rows[reportTable.rows.length - 1];
var oldDisplay = lastRow.style.display;
lastRow.style.display = "none";
var viewer = document.getElementById(this.clientID);
var clientHeight = viewer.clientHeight;
lastRow.style.display = oldDisplay;
return clientHeight;
}


Please fix this problem, and write how to possible fix it at current version.

Telerik Ajax Components 2011 Q3 (2011.3.1227.35)
Telerik Reporing 2011 Q3 (5.3.11.1222)

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 17 Jan 2012, 05:11 PM
Hi,

Thank you for bringing up this issue to our attention. We will make sure to fix it for the upcoming service pack, by the end of this week.

All the best,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Maxim Tairov
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or