RadComboBox for ASP.NET

Combobox cannot be validated Send comments on this topic.
TroubleShooting > Combobox cannot be validated

Glossary Item Box

If you need to validate the combobox control, you have to keep in mind that the Text set to the input field (the text of the combobox items) is what is actually validated by the validation control. You must also set the InitialValue property of the validation control.

RadComboBox is validated by the Text property set to the items as these items not always have Values.

Example:

ASPX Copy Code
<rad:RadComboBox
           
id="RadComboBox1"
           
runat="server"
           
skinspath="~/RadControls/ComboBox/Skins">
           
<Items>
               
<rad:RadComboBoxItem runat="server" Text="1" Value="1"></rad:RadComboBoxItem>
               
<rad:RadComboBoxItem runat="server" Text="2" Value="2"></rad:RadComboBoxItem>
               
<rad:RadComboBoxItem runat="server" Text="3" Value="3"></rad:RadComboBoxItem>
           
</Items>
</
rad:RadComboBox>
<
asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="RadComboBox1"
   
ErrorMessage="RequiredFieldValidator" InitialValue="1"></asp:RequiredFieldValidator>