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

refresh Ajax UpdatePanel on RadWindow Close

1 Answer 215 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 2
Brett asked on 18 Mar 2008, 06:15 PM
I am not sure what forum to post this in, but I think it is more Ajax related than RadWindow so I will post here.

I have an Ajax Update Panel which contains an ASP.net GridView, the gridview has a button that launches a RadWindow that contains a FormView, when you click insert/update on the formview is does the insert/update and closes the RadWindow.

However at this point I would also like the Update Panel (that holds the gridview) refreshed.

My RadAjaxManager looks like this:
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
         <AjaxSettings>    
                    <telerik:AjaxSetting AjaxControlID="winContact">    
                        <UpdatedControls>    
                            <telerik:AjaxUpdatedControl ControlID="rapListings"></telerik:AjaxUpdatedControl>    
                        </UpdatedControls>    
                    </telerik:AjaxSetting>    
                </AjaxSettings>    
    </telerik:RadAjaxManager> 

Any ides why it is not working?  I belive it is because my RadWindow closes on client side, so how do I call my ajax update using the "OnClientClose" of the RadWindow?

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 19 Mar 2008, 07:28 AM
Hello bslaght,

Consider invoking the ajaxRequest(eventArgs) method of the manager explicitly when the window instance is closed on the client. The integration example using RadGrid, RadWindow and RadAjax in this section of the RadControls Prometheus QSF can get you started in your implementation:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx

We will update soon the relevant KB article on our site as well.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Brett
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or