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

JavaScript error when using ReportViewer in RadWindow

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mc2000
Top achievements
Rank 1
mc2000 asked on 07 Sep 2010, 08:36 PM
Hi I have a asp.net report viewer control which has been working fine as a dynamically loaded user control in a asp.net Web page. I have been adding the item to a content placeholder using the controls.add method of an update panel. I wanted to change the functionality to load the usercontrol into a RadWindow. Nothing else has changed at all, except for I am trying to add my control to an update panel in a RadWindow

<telerik:RadWindow ID="DocumentWindow" runat="server" Modal="True" VisibleOnPageLoad="false"
     Behaviors="Close" AutoSize="false" Height="480" Width = "640">
     <ContentTemplate>
         <asp:UpdatePanel ID="DocumentWindowUpdatePanel" runat="server" UpdateMode="Always">
         <ContentTemplate>
         </ContentTemplate>
         </asp:UpdatePanel>
     </ContentTemplate>
 </telerik:RadWindow>

The RadWindow comes up on the page and the control "appears" to be loading inside. However, there is a JavaScript error being thrown "Expected ;" and none of my report contents are displayed. Also, when I click on the refresh icon I get: "OnCommand Refresh". What am I missing here? Thanks! 

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Sep 2010, 02:13 PM
Hello mc2000,

First verify whether your loading logic is working fine, by eliminating Telerik Reporting and test loading a user control in which a button updates a label with the current DateTime. If this is working fine and in order to get more information about the actual problem:
  • show the Output window in Visual Studio and check whether there is an exception when you're running your application in debug mode.
  • enable the CLR exceptions from Debug --> Exceptions menu in Visual Studio and run your project in debug.
If you are unable to identify the issue, please open a support ticket and attach a sample runnable project that exhibits the problem. Once we review it, we would be able to provide you with more information.

Greetings,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
mc2000
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or