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

RadWindow with ContentTemplate inside RadUpdatePanel

2 Answers 205 Views
Window
This is a migrated thread and some comments may be shown as answers.
Paul Butler
Top achievements
Rank 1
Paul Butler asked on 15 Mar 2010, 01:37 PM
Hi everyone...

Consider my code below: 

<telerik:RadWindow ID="radwdwAddressDetails" runat="server" Modal="true" Behaviors="None" 
    OpenerElementID="<%# btnShowAddressDetails.ClientID %>" Width="350px" DestroyOnClose="false"
    <ContentTemplate> 
        <asp:Panel ID="pnlAddressDetails" runat="server" CssClass="popup-outer"
            <uc:AddressDetails ID="ucAddressDetails" runat="server" /> 
            <div class="popup-body popup-buttons" style="margin-top: 5px;"
                <asp:Button ID="btnOKAddressDetails" runat="server" Text="+ Add" CssClass="button green" 
                    CausesValidation="true" OnClick="btnOKAddressDetails_Click" /> 
                <asp:Button ID="btnCancelAddressDetails" runat="server" Text="Cancel" CssClass="button red" 
                    CausesValidation="false" /> 
            </div> 
        </asp:Panel> 
    </ContentTemplate> 
</telerik:RadWindow> 

This code is part of another user control. The form hosting these controls wraps them in a RadUpdatePanel.

Currently, clicking on btnOKAddressDetails causes a full post pack refreshing the entire page which is not desirable (as it is inside the update panel). I would like it to do an asynchronous post back in this regard.

Any ideas?

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 18 Mar 2010, 10:19 AM
Hello Paul,

You are correct in your observation but this behavior is caused by the way the things work. The problem comes from the fact that the content of the RadWindow is moved in the DOM and the update panel uses innerHTML to make the updates. Since this is how AJAX works when element is moved in the DOM we cannot workaround this problem through code.

What I can suggest is to wrap the content in the ContentTemplate in the update panel instead or to use a RadAjaxManager for ajaxifying. Another option is to use a RadToolTip instead.



All the best,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Paul Butler
Top achievements
Rank 1
answered on 19 Mar 2010, 11:00 AM
Hi...  Thanks for your response on the matter- I thought this was the case.

I think the tooltip is what I need in this scenario.
Tags
Window
Asked by
Paul Butler
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Paul Butler
Top achievements
Rank 1
Share this question
or