Hello! I has faced such problem. I try to get access to control being inside RadDock using JavaScript. I do it as follows...
<script type="text/javascript">
var test = $find("<%=RadDock1.ContentContainer.FindControl("val1").ClientID %>");
</script>
<telerik:RadDock ID="RadDock1" runat="server" Width="300px">
<ContentTemplate>
<telerik:RadTextBox ID="val1" runat="server">
</telerik:RadTextBox>
</ContentTemplate>
</telerik:RadDock>
When page generated, i cannot get access to control, and its "null" because if look html code i see the following...
find this control - RadDock1_C_val1 but it is null. How can i get access to this control - RadDock1_C_val1_text ??? what i do not so??
Thanks!
<script type="text/javascript">
var test = $find("<%=RadDock1.ContentContainer.FindControl("val1").ClientID %>");
</script>
<telerik:RadDock ID="RadDock1" runat="server" Width="300px">
<ContentTemplate>
<telerik:RadTextBox ID="val1" runat="server">
</telerik:RadTextBox>
</ContentTemplate>
</telerik:RadDock>
When page generated, i cannot get access to control, and its "null" because if look html code i see the following...
<span id="RadDock1_C_val1_wrapper" class="RadInput RadInput_Default" style="white-space:nowrap;"> <input type="text" size="20" id="RadDock1_C_val1_text" name="RadDock1_C_val1_text" class="riTextBox riEnabled" style="width:125px;" /> <input id="RadDock1_C_val1" name="RadDock1$C$val1" class="rdfd_" style="visibility:hidden;margin:-18px 0 0 -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;" type="text" value="" /> <input id="RadDock1_C_val1_ClientState" name="RadDock1_C_val1_ClientState" type="hidden" /></span>And my javascript code - var test = $find("<%=RadDock1.ContentContainer.FindControl("val1").ClientID %>");
find this control - RadDock1_C_val1 but it is null. How can i get access to this control - RadDock1_C_val1_text ??? what i do not so??
Thanks!