We have used older Rad Controls for years and have a bunch of client-side code that works. We have also gone through RadAJAX client API for hours.........
Can anyone tell us Why doesn't the following code work?????
alert(RadNumericTextBox) simple returns null instead of the object...and we can never get the value.....
A simple example would be greatly appreciated......
_____________________________________________________________________________
<body onload="init();">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<script>
function init()
{
var RadNumericTextBox = $find('<%= RadNumericTextBox1.ClientID%>');
alert(RadNumericTextBox);
alert(RadNumericTextBox.get_value());
}
</script>
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Value="5">
</telerik:RadNumericTextBox>
</div>
</form>
</body>
Can anyone tell us Why doesn't the following code work?????
alert(RadNumericTextBox) simple returns null instead of the object...and we can never get the value.....
A simple example would be greatly appreciated......
_____________________________________________________________________________
<body onload="init();">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<script>
function init()
{
var RadNumericTextBox = $find('<%= RadNumericTextBox1.ClientID%>');
alert(RadNumericTextBox);
alert(RadNumericTextBox.get_value());
}
</script>
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" Value="5">
</telerik:RadNumericTextBox>
</div>
</form>
</body>