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

RadWindowManager with RadAjaxManager

3 Answers 61 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jocelyn
Top achievements
Rank 1
Jocelyn asked on 26 Oct 2012, 05:34 PM
Hi,

I have a RadWindowManager containing some Windows. There's one that looks like a confirm dialog that I want to call a Server Side function on click.

RadWindowManager:

<telerik:RadWindowManager ID="rwManager" runat="server" Behaviors="Default" DestroyOnClose="false"
    Modal="true" RestrictionZoneID="containerBCM" VisibleStatusbar="false" IconUrl="Images/Icons/064-Information-circle-Icon16x16.png">
    <Windows>
        <telerik:RadWindow runat="server" ID="winRapport" Modal="true" InitialBehaviors="Maximize"
            EnableShadow="True">
        </telerik:RadWindow>
        <telerik:RadWindow ID="rwSub" runat="server" Behaviors="Close" Width="600px" Height="200px"
            DestroyOnClose="false" Modal="true">
        </telerik:RadWindow>
        <telerik:RadWindow ID="rwIsBilanCompleted" runat="server" Behaviors="Close" Width="310px"
            Height="120px" DestroyOnClose="false" Modal="true" Title="GESPHARxLite 2">
            <ContentTemplate>
                <div class="rwDialogPopup radconfirm">
                    <div class="rwDialogText">
                        <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
                            <%=GetMessageEx(5738).TexteHTML%>
                        </telerik:RadCodeBlock>
                    </div>
                    <div>
                        <telerik:RadButton runat="server" ID="btnIBC_Yes" Width="70px" Style="margin: 8px 8px 8px 0px; float: left;"></telerik:RadButton>
                        <telerik:RadButton runat="server" ID="btnIBC_No" Width="70px" Style="margin: 8px 8px 8px 0px; float: left;"></telerik:RadButton>
                    </div>
                </div>
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

I have another button (btnPrint) on my page that do a postback and set the "rwIsBilanCompleted.VisibleOnPageLoad" to true so that it shows when it refresh. So I set my RadAjaxManager like this:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <ClientEvents OnResponseEnd="OnResponseEnd"></ClientEvents>
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="btnPrint">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rwManager" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="btnIBC_Yes">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="lblEtatBCM" />
                <telerik:AjaxUpdatedControl ControlID="rwIsBilanCompleted" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

It works well. The problem is that when I click on btnIBC_Yes, the entire page refresh like if there was no ajax.

Did I miss something?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 31 Oct 2012, 02:32 PM
Hi Jocelyn,

Please note that setting the button to update the label this way the setting will be ignored as the RadAjaxManager could not locate the button control which is added in window template. I would suggest you to add a setting in which the RadWindowManager updates the label control and verify if this helps.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jocelyn
Top achievements
Rank 1
answered on 02 Nov 2012, 01:15 PM
Hi Maria,

I tried to add a settings which RadWindowManager updates the label, but this is not working. I tried also to add a settings which only the RadWindow update the label and it's not working either. I feel like that nothing inside a RadWindow can update something outside this same window.

Any solutions?

Jocelyn

0
Maria Ilieva
Telerik team
answered on 07 Nov 2012, 11:38 AM
Hi Jocelyn,

In this case could I kindly ask you to open a regular support ticket and send us sample runnable application which demonstrates the issue. Thus we will be able to debug it locally and do our best to modify the ajax settings as per your requirements.

All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Jocelyn
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Jocelyn
Top achievements
Rank 1
Share this question
or