RadWindow with ContentTemplate inside RadUpdatePanel

3 posts, 0 answers
  1. Paul Butler
    Paul Butler avatar
    7 posts
    Member since:
    Jan 2010

    Posted 15 Mar 2010 Link to this post

    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. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 18 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul Butler
    Paul Butler avatar
    7 posts
    Member since:
    Jan 2010

    Posted 19 Mar 2010 Link to this post

    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.
Back to Top