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

[Solved] RadWindowManager and RadAjaxManager question

3 Answers 172 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John Fetherolf
Top achievements
Rank 1
John Fetherolf asked on 18 Jan 2008, 03:45 PM
I have a page that opens another page in a modal RadWindow.  Is it possible for the page in the RadWindow to make AJAX calls to itself through RadAjaxManager?  If so could you direct me to an example of code that does this?

On the base page I have RadWindowManager setup like so:

    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
        <Windows> 
            <telerik:RadWindow runat="server" ID="winEditOrderNumber" Modal="true" Skin="WebBlue" ReloadOnShow="true" 
                Title="Edit Order Number" ShowContentDuringLoad="false" VisibleStatusbar="false" Behaviors="None,Close"   
                IconUrl="~/images/gridcmds/Edit.gif" Width="325px" Height="120px" ClientCallBackFunction="OrderNumberChangeCallback">  
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
 

And the popup page has an AjaxManager like so:

        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnOK" /> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
 

When I hit btnOK it always causes a postback and a page reload.  I checked RadAjaxManager.GetCurrent().IsAjaxRequest and it says false.

Thanks in advance for the help,
Kevin

3 Answers, 1 is accepted

Sort by
0
John Fetherolf
Top achievements
Rank 1
answered on 18 Jan 2008, 03:52 PM
It seems RadAjaxManager doesn't like to just postback to a button that updates no other controls on the page.  Once I make btnOK update a label on the popup page I properly get the Ajax request.  So I guess the real question is, how do you cause an Ajax request when you really don't intend to update any controls on the page?
0
Steve
Telerik team
answered on 18 Jan 2008, 05:12 PM
Hi John Fetherolf,

This is a known limitation that was inherited from MS AJAX. It is outlined in this help article - for now the only workaround is to have an updated control.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John Fetherolf
Top achievements
Rank 1
answered on 18 Jan 2008, 05:39 PM
That is what I figured.

Thanks for the help.

Kevin
Tags
Grid
Asked by
John Fetherolf
Top achievements
Rank 1
Answers by
John Fetherolf
Top achievements
Rank 1
Steve
Telerik team
Share this question
or