I'v been beating my head with this the whole day and cant figure out why it doesn't work...
I'm trying to set the value of a RadTextBox with javascript and according to the documentation you should do that with the method set_value. However my browser keeps telling me that this method does not exist.
here is my code:
<%
@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="GateKeeper.Test" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title></title>
<telerik:RadCodeBlock runat="server">
<script>
function Configuration() {
var oInput = $get('<%= TestTextBox.ClientID%>');
oInput.set_value(
'Test');
}
</script>
</telerik:RadCodeBlock>
</
head>
<
body onload="Configuration()">
<form runat="server" id="form1">
<telerik:RadScriptManager runat="server"></telerik:RadScriptManager>
<telerik:RadTextBox ID="TestTextBox" runat="server"></telerik:RadTextBox>
</form>
</
body>
</
html>
Please help!