I've recently migrated one of my web forms from VS2005 and Telerik Q3 2008 to VS2010 and Telerik Q2 2010. The form contains a RadMultiPage with (12) RadPageView objects. I get the following error when I try to browse this web form. I can build the page without any errors and can view the multipage\pageviews successfully in design view, so I'm not sure what causes this error.
Any assistance would be greatly appreciated.
Any assistance would be greatly appreciated.
RadPageViewCollection must contain RadPageView objects
10 Answers, 1 is accepted
0
Hello Tim,
The provided information is not enough for us to understand the reasons for the issue you're experiencing. Please send us more details and sample code.
Greetings,
Yana
the Telerik team
The provided information is not enough for us to understand the reasons for the issue you're experiencing. Please send us more details and sample code.
Greetings,
Yana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

JustinWong
Top achievements
Rank 1
answered on 19 Dec 2010, 03:25 AM
Hi Tim:
Are you using AjaxManager? Do you have the individual RadPageView included as controls to be updated? If so, perhaps you want to get rid of them. I ran into the same problem with 2010 Q1 and Q2, getting rid of the RadPageView from the list of controls to be updated solved my problem.
Justin
Are you using AjaxManager? Do you have the individual RadPageView included as controls to be updated? If so, perhaps you want to get rid of them. I ran into the same problem with 2010 Q1 and Q2, getting rid of the RadPageView from the list of controls to be updated solved my problem.
Justin
0

Chen
Top achievements
Rank 1
answered on 13 Feb 2011, 11:40 PM
Thanks Justin. That helped me too.
0

improwise
Top achievements
Rank 1
Iron
Iron
answered on 31 Mar 2011, 12:20 PM
Picking up on this, well, removing them might work, but that kinds of beat the whole idea here, in case we don't want the RadMultiPage to Reload everything. So Telerik, please let us know how to get it to work?
0
Hi Patrik Johansson,
Could you please send me a sample project that reproduces the problem and we'll do the needful to inspect it and fix if needed.
Thank you!
Greetings,
Veronica Milcheva
the Telerik team
Could you please send me a sample project that reproduces the problem and we'll do the needful to inspect it and fix if needed.
Thank you!
Greetings,
Veronica Milcheva
the Telerik team
0

improwise
Top achievements
Rank 1
Iron
Iron
answered on 31 Mar 2011, 02:37 PM
Here you go, no code behind needed, will crash with a "RadPageViewCollection must contain RadPageView objects" upon page load
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Test.ascx.cs" Inherits="DesktopModules_HIBS_Test_Test" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
Runat
=
"server"
>
<
telerik:RadPageView
ID
=
"RadPageView1"
runat
=
"server"
>
RadPageView
</
telerik:RadPageView
>
<
telerik:RadPageView
ID
=
"RadPageView2"
runat
=
"server"
>
</
telerik:RadPageView
>
</
telerik:RadMultiPage
>
<
p
>
</
p
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadMultiPage1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadPageView1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
0

Shannon
Top achievements
Rank 1
answered on 02 Apr 2011, 06:06 PM
Any resolution on this? I have the same problem.
0

Benjamin
Top achievements
Rank 1
answered on 05 Apr 2011, 11:19 PM
I do know that it is caused by the page view being a control in the AjaxManager. if you wrap everythin inside of the page view in a panel and then make the panel the control in the manager then it should work. Obviously this is something that telerik should needs to fix.
0

improwise
Top achievements
Rank 1
Iron
Iron
answered on 05 Apr 2011, 11:49 PM
I completely agree with this, having to update the entire RadMultiView or do a "work around" doesn't feel good enough. Also, the designer shouldnt allow you to select the RadPageViews if it won't work runtime. Am I wrong to remember that individual RadPageViews were not visible before in the designer, just the RadMultiPage?
0
Hi Patrik and Benjamin,
Please note that the RadPageView is not a self control but part of the RadMultiPage. That's why you can only set the RadMultiPage to update itself:
Yes, you are definitely right that the RadAjaxManager must not show the PageViews in design-time. We'll do the needful to fix this.
Greetings,
Veronica Milcheva
the Telerik team
Please note that the RadPageView is not a self control but part of the RadMultiPage. That's why you can only set the RadMultiPage to update itself:
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
>
<
telerik:RadPageView
ID
=
"RadPageView1"
runat
=
"server"
>
RadPageView
</
telerik:RadPageView
>
<
telerik:RadPageView
ID
=
"RadPageView2"
runat
=
"server"
>
</
telerik:RadPageView
>
</
telerik:RadMultiPage
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadMultiPage1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadMultiPage1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
Yes, you are definitely right that the RadAjaxManager must not show the PageViews in design-time. We'll do the needful to fix this.
Greetings,
Veronica Milcheva
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