I've added an ASP.NET required validator on a Telerik textbox. I've noticed that the validator reports the contents of the textbox to be empty when the screen is first rendered, even though the textbox was prepopulated with text from a database. Refreshing the screen seems to make the validator recognize the text again.
I know telerik textboxes render as three input controls. Could the validator be trying to read the wrong input control?
I know telerik textboxes render as three input controls. Could the validator be trying to read the wrong input control?
<!-- FULL NAME -->
<
div
class
=
"FixedBlockCtrl"
style
=
"top:10px;left:60px;"
>
<
asp:Label
ID
=
"lblFullNameB"
cssclass
=
"standardLabel"
runat
=
"server"
Text
=
"Name *"
></
asp:Label
>
</
div
>
<
div
class
=
"FixedBlockCtrl"
style
=
"top:10px;left:100px;"
>
<
telerik:RadTextBox
ID
=
"txtFullNameB"
Label
=
""
cssclass
=
"standardTextbox"
runat
=
"server"
Width
=
"200px"
>
</
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"reqFullNameB"
runat
=
"server"
EnableClientScript
=
"False"
ControlToValidate
=
"txtFullNameB"
ToolTip
=
"First and last names required"
Display
=
"Dynamic"
Text
=
"*"
ErrorMessage
=
"Enter the first and last names of the coordinator"
Enabled
=
"true"
></
asp:RequiredFieldValidator
>
</
div
>
<!-- EOF FIRST NAME -->