LoadControl, updatepanel and postback

10 posts, 1 answers
  1. Hessner
    Hessner avatar
    189 posts
    Member since:
    Mar 2003

    Posted 10 Oct 2009 Link to this post

    Hi,

    I use LoadControl in CodeBehind, like this: RadMenuItem.Controls.Add(LoadControl("/login.ascx"));

    It work out fine, and my login control are now inside r.a.d.menu.

    BUT - if /login.ascx fail to login, I would like the r.a.d.menu item to open again and show the user, that a login problem occurred.

    AND - if I implement an UpdatePanel in my /login.ascx file, it will fail with:
    Cannot unregister UpdatePanel with ID '' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
    Parameter name: UpdatePanel


    Does anyone have solutions to these problems?
  2. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 15 Oct 2009 Link to this post

    Hello Hessner,

    Can you isolate the issue in a simple working demo and send it to us via a support ticket.

    Thanks.


    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hessner
    Hessner avatar
    189 posts
    Member since:
    Mar 2003

    Posted 15 Oct 2009 Link to this post

    I think that my description was "pretty clear" :-)

    1. For now, if my users are not locked in, they have to point at the "Login" menu item themselves.
    2. For now I have abandoned the use of UpdatePanel inside my usercontrol.

    I will sent you a project at a later time - and for sure if my users starts to complain :-)

    Regards
    Hessner
  5. Jason
    Jason avatar
    5 posts
    Member since:
    Oct 2008

    Posted 22 Oct 2009 Link to this post

    I have the same problems. Did anyone ever find a solution? 
  6. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 23 Oct 2009 Link to this post

    Hello Jason,

    We have not yet received a sample project from Bo, so we do not have a solution at the moment.

    If possible, please open a support ticket and send us your project there to inspect it.

    All the best,
    Simon
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Roman Krsko
    Roman Krsko avatar
    19 posts
    Member since:
    Mar 2010

    Posted 09 Mar 2010 Link to this post

    Hi,

    I have problem with loadcontrol also.
    If I load control on server side:
    Control userControl = LoadControl("usercontrols/result/resultgrid.ascx");
    myDock.ContentContainer.Controls.Add(userControl); 

    I have problem with client script on RadGrid. Some client ajax function are not ok (paging, page size, grouping, I see ajax load image only first time then only when refresh pages...).
    I I load control as <uc1:ResultGrid ID="ResultGrid1" runat="server" /> all is OK.
    But I need add control dynamically :(

    Inside my usercontrol I have only RadGrid

    <div> 
    <telerik:RadAjaxManager ID="radAjaxManager1" runat="server"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="grdResult"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="grdResult" LoadingPanelID="radAjaxLoadingPanel1"/> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel1" runat="server" Transparency="5"
    </telerik:RadAjaxLoadingPanel> 
    </div> 
     
    <asp:Panel ID="panelView1" runat="server"
     
    <telerik:RadAjaxPanel ID="radAjaxPanel1" runat="server"
        
        <telerik:RadGrid ID="grdResult" runat="server" AllowPaging="True" PageSize="15" 
                ShowGroupPanel="True" GridLines="None" onitemdatabound="grdResult_ItemDataBound" 
                AllowSorting="True" RegisterWithScriptManager="true" onneeddatasource="grdResult_NeedDataSource"
            <PagerStyle Mode="NumericPages"></PagerStyle> 
            <ClientSettings AllowDragToGroup="True"
                <DataBinding EnableCaching="true" /> 
                <Selecting AllowRowSelect="true" /> 
                <ClientEvents/> 
            </ClientSettings> 
            <GroupingSettings ShowUnGroupButton="true" /> 
        </telerik:RadGrid> 
     
    </telerik:RadAjaxPanel> 
     
    </asp:Panel> 

    Thanks for answer.

    Regards
    Roman Krsko

  8. Jean-Francois
    Jean-Francois avatar
    3 posts
    Member since:
    Sep 2010

    Posted 07 Oct 2010 Link to this post

    Telerik never have the answer...

    it's sucks!
  9. Felipe
    Felipe avatar
    3 posts
    Member since:
    Jul 2011

    Posted 27 Jul 2011 Link to this post

    What's the solution?
  10. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 29 Jul 2011 Link to this post

    Hello Felipe,

    Please open a support ticket and send us a sample there. We will debug it and will post the solution in the ticket and in this forum thread.

    Kind regards,
    Hector
    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.

  11. Felipe
    Felipe avatar
    3 posts
    Member since:
    Jul 2011

    Posted 29 Jul 2011 Link to this post

    I solved the problem.
    I changed the control "UpdatePanel" for "RadAjaxPanel"

    Thanks
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017