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

Validator on Two ComboBoxes

3 Answers 35 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 24 Jul 2008, 02:59 PM
I have two RadComboBoxes and want a validator on them.

<telerik:RadComboBox ID="RadComboBox1" Width="200px" Skin="Hay" runat="server" />    
<telerik:RadComboBox ID="RadComboBox2" Width="200px" Skin="Hay" runat="server" /> 

RadComboBox1 has values 0-3
RadComboBox has values 0-50
0 = default values

If RadComboBox1 = 2  
 Then RadComboBox2 != 0 

Your help is appreciated!

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 24 Jul 2008, 03:11 PM
Hi George,

You can use this help article as a starting point on how to perform custom validation of your comboboxes:
http://www.telerik.com/help/aspnet-ajax/validate-combobox-value.html

I hope this helps.

Greetings,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mike
Top achievements
Rank 1
answered on 24 Jul 2008, 03:28 PM
I can validate one already, it's when one is selected how do you validate the second combobox?
0
Accepted
Veselin Vasilev
Telerik team
answered on 25 Jul 2008, 02:03 PM
Hi George,

Can't you use the CustomValidator?

In the javascript validation function you can find the first combo, get its Text or Value and then find the second combo and perform your logic.

Best wishes,
Veskoni
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Mike
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Mike
Top achievements
Rank 1
Share this question
or