Basically I just want to set a tab on a RadTabStrip to be selected but I seem to be falling at the first fence.
According to the documentation
http://www.telerik.com/help/aspnet-ajax/tab_clientsideradtab.html
you can use this syntax...
var tabStrip = $find("<%=RadTabStrip1.ClientID%>");
Unfortunately no matter where I put this bit of code it always returns null.
I've been trying to do this for about 3 hours now and it's driving me nuts.
I've also tried
var tabStrip = <%=RadTabStrip1.ClientID%>;
Which only returns a value if placed after the definition of the RadTabStrip, as you might expect. However it doesn't have any of the published client-side methods associated with it.
Baffled.
------------------------------
Created a very simple page with virtual nothing in it - still doesn't work....
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadTabStrip ID="RadTabStrip1" runat="server">
<Tabs>
<telerik:RadTab runat="server" Text="Tab1">
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Tab2">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<div>
</div>
</form>
<script type="text/javascript" >
var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
if(tabStrip == null)
alert("bad");
</script>
</body>