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

WebViewer javascript error

4 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John Swenson
Top achievements
Rank 1
John Swenson asked on 12 Oct 2011, 04:12 PM
I got this Javascript error in my WebViewer (roughly translated in english):
"unable to get the value of 'rows' property: object not set to instance (null)"

Then Visual Studio 2010 stops in the following js function:

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;
}

the extact line that fires the error is:
var lastRow = reportTable.rows[reportTable.rows.length - 1];

I'm using Q2 2011 SP1.
Thank you.

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 13 Oct 2011, 11:00 AM
Hi John,

Thank you for bringing this to our attention. However we have not been contacted with such a problem so far and we have not been able to reproduce it with the latest official Q2 2011 SP1 release on any of the latest browsers (IE 9, Firefox 7.0.1, Chrome 14.0.835.202 m and Opera 11.51). Can you please provide us with the exact browser and version (if not the latest please upgrade and try again).

If the problem persists/happens with the latest version of Telerik Reporting and the latest browser version, we would appreciate if you prepare a sample runnable project that exhibits the problem. Once we review it, we would be able to provide more information on the culprit.

Best wishes,
Steve
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

0
John Swenson
Top achievements
Rank 1
answered on 13 Oct 2011, 01:35 PM
I get the error on IE9, FF 7.0.1 and Chrome 14.0.835.202 m Windows.
I forgot to tell that as a result of the error, the "Print" and "Refresh" seems to be disabled or anyway they do nothing and the "NavigateBack" button.... prints the report!
I'll see if I can make a project to reproduce the problem.

Regards.
0
John Swenson
Top achievements
Rank 1
answered on 13 Oct 2011, 06:54 PM
I've just submitted a support ticket for this problem, togheter with a sample application to reproduce the problem
Actually, with the sample application you can reproduce two problems I'm having: this one and one other discussed here:

http://www.telerik.com/community/forums/aspnet-ajax/ajax/error-when-trying-to-update-ajaxified-textbox-through-a-button.aspx

The support ticket number is #473284
I'm sorry for having mixed the two problems but I'm in a hurry, really.

Best regards.

0
Accepted
Tsvetoslav
Telerik team
answered on 14 Oct 2011, 10:55 AM
Hi John,

If the solution provided in forum thread #473020 solves the reporting problem as well, as you have mentioned, please close the current support thread.

Regards, Tsvetoslav
the Telerik team

Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

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