Hey guys
Trying to set focus to a specific control in a radwindow content template. I have the following in my Onclientshow (taken from another thread). Thanks!
The problem is that at run time, the findcontrol server side block is turning up ''
Becase this is in a user control, I suspect I need to do something different to find the control:
"WctlShippingCart_rwDialog_C_radnMvCustNo_wrapper" is what is has become.
The content layout is as follows:
Trying to set focus to a specific control in a radwindow content template. I have the following in my Onclientshow (taken from another thread). Thanks!
<script type="text/javascript"> function OnClientShow(sender, args) { var pnum = $get('<%# rwDialog.FindControl("radnMvPropNo").ClientID %>'); pnum.focus(); }</script>The problem is that at run time, the findcontrol server side block is turning up ''
<script type="text/javascript"> function OnClientShow(sender, args) { var pnum = $get(''); pnum.focus();}</script>Becase this is in a user control, I suspect I need to do something different to find the control:
"WctlShippingCart_rwDialog_C_radnMvCustNo_wrapper" is what is has become.
The content layout is as follows:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="True" Modal="True" Behavior="Default" InitialBehavior="None"> <Windows> <telerik:RadWindow runat="Server" ID="rwDialog" Modal="true" Title="Move Selected Properties" OnClientShow="OnClientShow" AutoSize="True" Behavior="Close, Move" Behaviors="Close, Move" VisibleStatusbar="False"> <ContentTemplate> <table width="220px"> <tr> <td style="width: 12%"> </td> <td style="width: 32%"> Customer # </td> <td style="width: 1%"> </td> <td style="width: 1%"> </td> <td style="width: 7%"> </td> <td style="width: 32%"> Property # </td> <td style="width: 12%"> </td> </tr> <tr> <td> </td> <td> <telerik:RadNumericTextBox runat="Server" ID="radnMvCustNo" Width="50px" Culture="English (United States)" Skin="Vista" MaxLength="4" MaxValue="9999" MinValue="1000"> <NumberFormat DecimalDigits="0" GroupSeparator="" /> </telerik:RadNumericTextBox> </td> <td> </td> <td style="text-align: center"> - </td> <td> </td> <td> <telerik:RadNumericTextBox runat="Server" ID="radnMvPropNo" Width="50px" Skin="Vista" Culture="English (United States)" MaxValue="9999" MinValue="1000" MaxLength="4"> <NumberFormat DecimalDigits="0" GroupSeparator="" /> </telerik:RadNumericTextBox> </td> <td> </td> </tr> <tr> <td> </td> <td colspan="5" style="text-align: center"> <br /> <asp:Button runat="Server" ID="btnMoveOK" Text="Move" /> <asp:Button runat="Server" ID="btnMoveCancel" Text="Cancel" /> </td> <td> </td> </tr> </table> </ContentTemplate> </telerik:RadWindow> </Windows></telerik:RadWindowManager>