Hi guys,
I have 2 ComboBoxes, The selection from the first comboBox Will populate the Second ComboBox and will bind the data from a SQL database. This all work perfectly but since i added a RequiredFieldValidator on the first ComboBox if the user fails to select a option from the first combobox the Validation Error will Fire but then when the user selects an item from the first ComboBox ofter being prompted to please make a selection the Second ComboBox fails to populate.
Here is and example of Code i am using for the validation
I have 2 ComboBoxes, The selection from the first comboBox Will populate the Second ComboBox and will bind the data from a SQL database. This all work perfectly but since i added a RequiredFieldValidator on the first ComboBox if the user fails to select a option from the first combobox the Validation Error will Fire but then when the user selects an item from the first ComboBox ofter being prompted to please make a selection the Second ComboBox fails to populate.
Here is and example of Code i am using for the validation
<td><telerik:RadComboBox ID="cboAccount" runat="server" DataTextField="AccountName"DataValueField="AccountID" EnableLoadOnDemand="True" EmptyMessage="Select Account"MarkFirstMatch="True"OnSelectedIndexChanged="cboAccount_SelectedIndexChanged"AutoPostBack="True" ></telerik:RadComboBox> <asp:RequiredFieldValidator ID="ValidateAccount" runat="server"ControlToValidate="cboAccount" ErrorMessage="Please select a value"></asp:RequiredFieldValidator> </td>