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

Clientside Validation

2 Answers 102 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
lmf232s
Top achievements
Rank 1
lmf232s asked on 16 Feb 2011, 08:37 PM
Is there any way to force a client side error if a value entered into the combobox is not a valid value of the combobox?

For example go to this link and type in some random number (2323232) instead of selecting a product:
http://demos.telerik.com/aspnet-mvc/combobox/clientvalidation

I can't believe that value 2323232 is a valid value for a product yet you can still click the save button and post the value. If you type a random string into the product name 'asdsdfsdfsd' you'll see that you do get a client side error.

So its seems to be filtering on the string values associated with the combobox but not the int values. You would think this should work both ways. I should not be able to enter a random int value into the combo box. If so it should raise an error just like it does when you enter a random product name.

Any ideas?

Thanks,
lmf232s

2 Answers, 1 is accepted

Sort by
0
lmf232s
Top achievements
Rank 1
answered on 14 Mar 2011, 04:53 PM
Its been a while with no answer, just wanted to see if anyone had any ideas.
0
Casey
Top achievements
Rank 1
answered on 04 May 2011, 10:33 PM
Hi - just posted something that may help in a different thread
Tags
ComboBox
Asked by
lmf232s
Top achievements
Rank 1
Answers by
lmf232s
Top achievements
Rank 1
Casey
Top achievements
Rank 1
Share this question
or