This is a migrated thread and some comments may be shown as answers.

Combobox selected index Change with validation

1 Answer 124 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 28 Oct 2010, 07:49 AM
hey everyone,

I have a radcombobox & 3 textboxes.on page load radcombobox is visible,and first textbox is not.On combobox selected index change event of combobox,i fill other 2 text boxes for address and phoneNo.I have validated each 4 controls with required field validator,And added a validation summmary.I have added a button of new user where onClick radcombobox is invisible and textbox is visible.

Now,if i fill values for new user that is all through 3 textBoxes i got validation error for combobox "please select an item".And if i am using combobox then my selected index change from codebehind is not fired.Validation asks for "filling address and Phone no."

What to do?...

Thanks
Amit

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 02 Nov 2010, 03:01 PM
Hello Amit,

Why don't you supply one Item to the RadComboBox just in this case so that the validation works?

Greetings,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Amit
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or