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

Access Controls in Confirm Template

1 Answer 112 Views
Window
This is a migrated thread and some comments may be shown as answers.
ranro
Top achievements
Rank 1
ranro asked on 23 Aug 2010, 08:37 PM

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" >
            <ConfirmTemplate>
                <div class="rwDialogPopup radconfirm">  
                    <div class="rwDialogText">
                        {1}   
                    </div>     
                    <div>                       
                        <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>
                    </div>
                </div>
            </ConfirmTemplate>
            <Windows>
                <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"  />  
            </Windows>    
        </telerik:RadWindowManager>

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 24 Aug 2010, 07:23 AM
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
Tags
Window
Asked by
ranro
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or