Cannot modify the controls collection of a GenericWebPart

7 posts, 0 answers
  1. Gordon
    Gordon avatar
    9 posts
    Member since:
    Aug 2008

    Posted 20 May 2009 Link to this post

    Hi,

    Working in VS2008, I have a normal working aspx page with telerik:RadAjaxManager, telerik:RadScriptManager and asp:WebPartManager

    Everything works fine until I drop a RadAjaxPanel into a WebZone. Then it blows up with
    "Cannot modify the controls collection of a GenericWebPart.  To create a new GenericWebPart, use the WebPartManager.CreateWebPart() method"

    Markup is
    <asp:WebPartZone ID="WebPartZone5" runat="server">
                        <ZoneTemplate>
                          <telerik:RadAjaxPanel ID="RadAjaxPanel5" runat="server" ></telerik:RadAjaxPanel>
                        </ZoneTemplate>
                    </asp:WebPartZone>

    UpdatePanels can go in Webpart zones, what is wrong with the Telerik Panel

    Thanks and regards

    Gordon
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 22 May 2009 Link to this post

    Hello Gordon,

    Unfortunately you are right. This scenario is not supported by our RadAjaxPanel because it is actually a wrapper around the MS UpdatePanel and injects the real update panel on-the-fly, thus modifying the Controls collection of the GenericWebPart which results in the error you get.

    I hope that replacing our ajax panel with MS UpdatePanel in this case (which behaves in the same way) is applicable workaround for you. Please excuse us for not being able to provide more elegant solution for this particular situation.

    Kind regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  3. Rodrigo Rosada
    Rodrigo Rosada avatar
    4 posts
    Member since:
    May 2010

    Posted 05 Feb 2014 in reply to Sebastian Link to this post

    Hi Sebastian,

    I'm development an application with Telerik component. And I have the same problem.

    That error doesn't solved? Any idea to solve this problem ?

    Tks.
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 07 Feb 2014 Link to this post

    Hi Rodrigo,

    We made some research on our end in which our development team was actively involved and unfortunately we came to a conclusion that the presented scenario is still not supported with RadAjax. You could see the following help topic where all controls not compatible with ajax are listed:
    http://www.telerik.com/help/aspnet-ajax/ajax-controls-not-compatible.html

    Accept our apologizes for any incontinence this generic limitation may lead.

    Regards,
    Maria Ilieva
    Telerik
    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
  5. Rodrigo Rosada
    Rodrigo Rosada avatar
    4 posts
    Member since:
    May 2010

    Posted 07 Feb 2014 in reply to Maria Ilieva Link to this post

    Hi Maria,

    Ok tks for your reply. I looked the list and there aren't have the UserControl in the list.

    Do you know if i can use this control in my application?

    Tks.

  6. Rodrigo Rosada
    Rodrigo Rosada avatar
    4 posts
    Member since:
    May 2010

    Posted 07 Feb 2014 in reply to Maria Ilieva Link to this post

    Hi Maria again,

    Do you know if we have another way to use this control in our application.

    We need use this control. Any ideia?

    Tks.
  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 07 Feb 2014 Link to this post

    Hello Rodrigo,

    User Controls are fully compatible with RadAjax. You could see more information for using UserControls with RadAjax in the topics below:

    http://www.telerik.com/help/aspnet-ajax/ajax-user-controls.html


    Regards,
    Maria Ilieva
    Telerik
    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 UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top