I've been using RadWindows and very successfully applying the Page.ClientScript.RegisterStartupScript solution to close the RadWindow. However, when I'm using AJAX within the RadWindow that solution does not close the window when applied during an AJAX request. Can anyone suggest a method for closing a RadWindow in this situation? (I'm using a Telerik ASP.NET AJAX release from Apr 2010.)
Here are some specifics on the scenario:
The page (AddItem.aspx) that I'm displaying in the RadWindow is very simple and contains a web user control -- we'll call it Search.ascx. Search.ascx has a textbox for entering a search string, a "Search" button (btnSearch) and a RadGrid (grdResults) for displaying search hits. A user selection from the RadGrid (handled via ItemCommand event) raises Search.ascx's "SelectionComplete" event. AddItem.aspx handles this event and closes itself -- passing back an argument via oRadWin.argument -- which works fine without any AJAX settings in the page or in Search.ascx. However, if I use a RadAjaxManagerProxy in Search.ascx to show an AJAX loading panel over grdResults (because the search and paging operations sometimes take several seconds) the RadWindow will not close automatically.
I have verified that the RegisterStartupScript call in AddItem is being made in this situation, but I'm assuming that the startup script is not running because AJAX causes only parts of the page to be updated. How can I force the RadWindow to close itself during a partial postback?
Thanks in advance,
Tom
Here are some specifics on the scenario:
The page (AddItem.aspx) that I'm displaying in the RadWindow is very simple and contains a web user control -- we'll call it Search.ascx. Search.ascx has a textbox for entering a search string, a "Search" button (btnSearch) and a RadGrid (grdResults) for displaying search hits. A user selection from the RadGrid (handled via ItemCommand event) raises Search.ascx's "SelectionComplete" event. AddItem.aspx handles this event and closes itself -- passing back an argument via oRadWin.argument -- which works fine without any AJAX settings in the page or in Search.ascx. However, if I use a RadAjaxManagerProxy in Search.ascx to show an AJAX loading panel over grdResults (because the search and paging operations sometimes take several seconds) the RadWindow will not close automatically.
I have verified that the RegisterStartupScript call in AddItem is being made in this situation, but I'm assuming that the startup script is not running because AJAX causes only parts of the page to be updated. How can I force the RadWindow to close itself during a partial postback?
Thanks in advance,
Tom