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

loadingpanel for a ajaxrequest from closing radwindow

4 Answers 139 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Geert
Top achievements
Rank 1
Geert asked on 30 Sep 2008, 11:30 AM
Hello,

We have the following situation:

A masterpage with a radajaxmanager and a loadingpanel (GlobalLoadingPanel)
A usercontrol A on the master with a radajaxmanagerproxy
A radwindow on the usercontrol with a onclientcloseEvent
when closing $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(arg.Text); which triggers a ajaxrequest for the proxy.

The proxy updates another usercontrol B on the usercontrol 

<

telerik:RadAjaxManagerProxy ID="MetisCollectionManager" runat="server">
<
AjaxSettings>
<telerik:AjaxSetting AjaxControlID="MetisCollectionManager" >
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnlCollectionEmployee_Updatable"
LoadingPanelID
="GlobalLoadingPanel" />
</UpdatedControls>
</telerik:AjaxSetting>


problem: the loadingpanel is not showing on usercontrol B

Is this possible??

thanks in advance
The SOFIM-team (Belgium)

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 30 Sep 2008, 12:12 PM
Hello Geert,

One possible reason for the presented issue could be adding the LoadingPanel into the radAjaxManager settings in some level in the application. However without having sample project to debbug, it will be rather deaficult to isolate this problem.
Will it be convenient for you to open a regular support ticket and send us small runnable project which represents the described behaviour? We will test it locally and advise you further.

Kind regards,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Geert
Top achievements
Rank 1
answered on 08 Oct 2008, 09:20 AM
Hello,

Sorry we didn't replied sooner but there were some more important issues to deal with first. Meanwhile I played around and found the solution. I'll try to explain:

<telerik:RadAjaxManagerProxy ID="MetisCollectionManager" runat="server">
<
AjaxSettings>
<telerik:AjaxSetting AjaxControlID="MetisCollectionManager" >
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="B"
LoadingPanelID
="GlobalLoadingPanel" />
</UpdatedControls>
</telerik:AjaxSetting>

problem: the loadingpanel is not showing on usercontrol B

solution: Do not use as ajaxcontrol the proxy but the id of the manager itself (from the masterpage)!!
<telerik:RadAjaxManagerProxy ID="MetisCollectionManager" runat="server">
<
AjaxSettings>
<telerik:AjaxSetting AjaxControlID="Manager" >
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="B"
LoadingPanelID
="GlobalLoadingPanel" />
</UpdatedControls>
</telerik:AjaxSetting>


In the code behind of the page where the manager is placed you can set the settings for the proxy as follows:

RadAjaxProxyManager p = usercontrol.GetProxy();
p.AjaxSettings.AddAjaxSetting(Manager, usercontrol.B, LoadingPanel);

Hope this can help to document the issue or to help others with similar problems

Greetings,
The Sofim-team (Belgium)

0
Geert
Top achievements
Rank 1
answered on 09 Oct 2008, 08:06 AM
Hello,

Previous solution does work but when I applied my old solution (above) which didn't work before do work for another usercontrol and there imply problems with other loadingpanels.

Sorry to say but I'm getting really frustrated with the ajaxmanagers, proxy's and loadingpanels.

About the solution: If implemented please pray to the correct God and it will work properly.
0
Iana Tsolova
Telerik team
answered on 09 Oct 2008, 02:01 PM
Hi Geert,

I have to admit you were nearly there with the solution posted on 10/08/2008. You where right that the Manager should be set as ajax initiator but you did not guess where to add the ajax setting so I will help you now.

Please remove any settings added in the user control or the page where control "B" is update from the manager or the proxy manager. In the user control then handler the Page_Prerender event and try the following code:

protected void Page_PreRender(object sender, EventArgs e)  
{  
    RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);  
    manager.AjaxSettings.AddAjaxSetting(manager, usercontrol.B, LoadingPanel);  

Let me know if this helps and if any issues arise.

Sincerely yours,
Iana
the Telerik team

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