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

RadAjaxManager and SSRS ReportViewer 2010 Error

3 Answers 40 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 29 Oct 2012, 11:35 PM
Hello,
I'm trying to put SSRS ReportViewer controls in a RadMultiPage controlled by a RadTabStrip and RadAjaxManager.  When changing to a different tab I get the following js error for the report element:

Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.
Parameter name: element

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                    <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" AutoPostBack="true" MultiPageID="RadMultiPage1">
        <Tabs>
            <telerik:RadTab Text="Tab1">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab2">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server">
        <telerik:RadPageView ID="RadPageView1" runat="server">
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote">
                <ServerReport ReportPath="myPath" ReportServerUrl="myUrl" />
            </rsweb:ReportViewer>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server">
            <rsweb:ReportViewer ID="ReportViewer2" runat="server" ProcessingMode="Remote">
                <ServerReport ReportPath="myPath" ReportServerUrl="myUrl" />
            </rsweb:ReportViewer>
        </telerik:RadPageView>
    </telerik:RadMultiPage>


Any idea what's going on?  I also tried the above by adding the reportviewers in the UpdatedControls section of the AjaxManager but that still threw an error:

<telerik:AjaxUpdatedControl ControlID="ReportViewer1" />


   I was able update the report with a normal UpdatePanel, but can't get this working.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 01 Nov 2012, 03:27 PM
Hi Ryan,

Please note that there are some specifics ins updating RadTabStrip/RadMultiPage controls with RadAjaxManager. I would suggest you to review the help topic below which elaborates on this matter:
http://www.telerik.com/help/aspnet-ajax/ajax-tips-and-tricks.html

Test the provided approach and let me know if this helps.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ryan
Top achievements
Rank 1
answered on 01 Nov 2012, 04:11 PM
Hi Maria,

The only thing I didn't have that the article noted was having the MultiPage be an AjaxSetting as well:

<telerik:AjaxSetting AjaxControlID="RadMultiPage1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
            </UpdatedControls>
</telerik:AjaxSetting>

Although adding this still did not fix the issue, I'm still getting the same error message as before.

Thanks,
Ryan
0
Maria Ilieva
Telerik team
answered on 06 Nov 2012, 11:37 AM
Hi Ryan,

Could you please try wrapping the RadTabStrip and RadMultiPage controls into single RadAjaxPanel and verify if this makes any difference? Also please let me know what the result is in case the ajax is disabled on the page.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Ryan
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or