On my ASP.NET page, I have a telerik RadTextBox connected to a RequiredFieldValidator
. An issue arises when I set a value to the RadTextBox using javascript like this:
document.getElementById('<%= mytextbox.ClientID %>').value = myvalue;
The validator incorrectly detects that the RadTextBox is empty and prevents the submission. This problem does not occur with a standard textbox.
What causes this behavior and how can it be fixed?