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

refresh the radAJAX panel on closing of radwindow

1 Answer 120 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nannu
Top achievements
Rank 1
Nannu asked on 11 Aug 2011, 08:28 PM
Hi,
Im new to telerik control, One of the requirement we got is to open  a radWindow , radwindow is present inside radAjaxpanel.
RadWindow should  be open up on Click of html button.Im successfully till that part, Now radwindow contains a treeview aong with ASO.NET button "OK" and cancel html button. On Click of Cancel radwindow as to close and dont refresh parent radajaxpanel. When the user clicks on "OK" server side functionality to performed and update the parent radajax panel. Can anytell me how to perform

I tried adding javascript 

 function OnClientClose()
{
    $find("<%=radPanel.ClientID%>").ajaxRequest("Rebind");
}

In the radAJAXPANEL  i added OnAjaxRequest but nothing is working
-Mahender

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Aug 2011, 02:13 PM
Hello Mahender,

The RadWindow's content is moved in the DOM and the update panels use the innerHTML property to work, thus they often cannot find the content they need to update if the entire RadWindow is placed in an update panel. If you are loading an entire page in the RadWindow you can use AJAX in ti separately from the main page and you would not need the ajax panel in the first place. If you need to modify some settings of the RadWIndow you can do so via its client-side API. If you are using the ContentTemplate I would advise that you place the ajax panel directly inside it, so that it wraps only the contents of the RadWindow, not the entire RadWindow. Also, please make sure that the controls you change in the code-behind are actually updated on the client, as if they are outside of the RadAjaxPanel the change would not be reflected on the client, and this is a probable cause why it would seem that the event is not fired.

If you are still experiancing difficulties please open a support ticket and send us a runnable project that isolates this behavior so we can investigate it.

Greetings,
Marin
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.

Tags
Window
Asked by
Nannu
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or