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

Ajax request from Radwindow

1 Answer 94 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mayuresh
Top achievements
Rank 1
Mayuresh asked on 15 Sep 2011, 09:20 AM
Can someone point me the right direction to implement a show a  Radwindow without refreshing the parent page in jquery and once the Radwindow is loaded, I need to make ajax calls from the Radwindow.

Thank you

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 19 Sep 2011, 07:05 AM
Hi Mayuresh,

The RadWindow is a client-side object and is best used via JavaScript, thus usually no refresh to the parent page should be made when opening it. To do so you need to use its client-side API. The following help article shows the various ways to open a RadWindow on the client: http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html. As for performing AJAX requests - there are two cases:
1. you are using the ContentTemplate - please examine this help article on ajaxifying a RadWindow. In a similar manner you can point AJAX settings of a RadAjaxManager to buttons in the content template
2. you are using the NavigateUrl property - the above article still applies - if you need the AJAX requests to take place in the content page then it does not matter that it is loaded in a RadWindow. If you wish to initiate AJAX requests on the main page I advise that you examine this help article on calling functions form a RadWIndow: http://www.telerik.com/help/aspnet-ajax/window-programming-calling-functions.html. Then you need to declare functions that will initiate an AJAX request as explained in this help article: http://www.telerik.com/help/aspnet-ajax/ajax-client-side-api.html.


Regards,
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
Mayuresh
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or