Access Controls in Confirm Template

2 posts, 0 answers
  1. ranro
    ranro avatar
    50 posts
    Member since:
    Aug 2007

    Posted 23 Aug 2010 Link to this post

    Is it possible to access the controls in the confirm template using C#?

    For the code, how to refer to the “btnYes” on the page load function?

    I would to access the control because my application will let users change the text on the control.

    <telerik:RadWindowManager ID="PageAjaxWindowManager" runat="server" VisibleStatusbar ="false" OnClientShow="onClientShow" OnClientClose="onClientClose"  OnClientBeforeClose="ConfirmClose" >
                    <div class="rwDialogPopup radconfirm">  
                        <div class="rwDialogText">
                            <a onclick="$find('{0}').close(true);" href="javascript:void(0);" ><asp:Button ID="btnYes" runat="server" Text="Yes,I do." /></a>
                            <a onclick="$find('{0}').close(false);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[No]##</span></span></a>
                    <telerik:RadWindow ID="Window1" runat="server" Title="Window 1" Height="510px"
                        Width="750px" Left="20px" Top="3px" Modal="true"   />
                    <telerik:RadWindow ID=" Window2" runat="server" Title=" Window 2 " Height="480px"
                        Width="750px" Left="20px" Top="3px" Modal="true"  />
                    <telerik:RadWindow ID=" Window3" runat="server" Title=" Window 3" Height="400px"
                         Width="550px" Left="50px" Modal="true"  />  
  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 24 Aug 2010 Link to this post

    Hi Ranro,

    RadWindowManager's confirm, prompt and alert templates support pure HTML only - you cannot use server controls in them. As an alternative, you could use the content template feature of the window and to create your own RadWindow dialog.

    Best wishes,
    Georgi Tunev
    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. DevCraft R3 2016 release webinar banner
Back to Top