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

LoadControl, updatepanel and postback

9 Answers 202 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Hessner
Top achievements
Rank 2
Hessner asked on 10 Oct 2009, 10:44 AM
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?

9 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 15 Oct 2009, 08:17 AM
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.
0
Hessner
Top achievements
Rank 2
answered on 15 Oct 2009, 08:35 AM
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
0
Jason
Top achievements
Rank 2
answered on 23 Oct 2009, 04:25 AM
I have the same problems. Did anyone ever find a solution? 
0
Simon
Telerik team
answered on 23 Oct 2009, 04:26 PM
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.
0
Roman Krsko
Top achievements
Rank 1
answered on 09 Mar 2010, 09:28 PM
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

0
Jean-Francois
Top achievements
Rank 1
answered on 07 Oct 2010, 04:47 PM
Telerik never have the answer...

it's sucks!
0
Felipe
Top achievements
Rank 1
answered on 27 Jul 2011, 08:13 PM
What's the solution?
0
Simon
Telerik team
answered on 29 Jul 2011, 12:06 PM
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.

0
Felipe
Top achievements
Rank 1
answered on 29 Jul 2011, 01:29 PM
I solved the problem.
I changed the control "UpdatePanel" for "RadAjaxPanel"

Thanks
Tags
Menu
Asked by
Hessner
Top achievements
Rank 2
Answers by
Peter
Telerik team
Hessner
Top achievements
Rank 2
Jason
Top achievements
Rank 2
Simon
Telerik team
Roman Krsko
Top achievements
Rank 1
Jean-Francois
Top achievements
Rank 1
Felipe
Top achievements
Rank 1
Share this question
or