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

Ajax Error with Microsoft's ReportViewer

1 Answer 84 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Robert O'Dell
Top achievements
Rank 1
Robert O'Dell asked on 07 Dec 2008, 05:18 AM
I'm required to use rdl or rdlc for my reports, so when presenting I use the Microsoft ReportViewer control as I believe that Telerik's ReportViewer does not support those extensions.  My problem is I have a checkboxlist that I need to populate based on a drop down list.  These controls are in RadMultiPage.  I've surrounded the two fields with a RadAjaxPanel.  When I run the page, it comes up correctly, the Ajax works in that I can populate the checkboxlist. But then when I press the button to build the report, I get the following error.

Specified argument was out of the range of valid values.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.]
   Microsoft.Reporting.WebForms.ReportViewer.set_CurrentPage(Int32 value) +137
   Microsoft.Reporting.WebForms.ReportViewer.ClientSidePageNumberChanged(Object sender, EventArgs e) +69
   System.Web.UI.WebControls.HiddenField.OnValueChanged(EventArgs e) +111
   System.Web.UI.WebControls.HiddenField.RaisePostDataChangedEvent() +31
   System.Web.UI.WebControls.HiddenField.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +10
   System.Web.UI.Page.RaiseChangedEvents() +165
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1485

If I remove the RadAjaxPanel, the page works correctly.  The ReportViewer is not within the RadAjaxPanel and in fact is in a different RadPageView.  Do you have any thoughts on this?
Thanks,
Bob O'Dell

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 08 Dec 2008, 02:47 PM
Hi Robert,

Could you please test the application by using regular asp UpdatePanel instead of RadAjaxPanel and let me know whether the problem still persists?

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Robert O'Dell
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or