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

RadComboBox items with no Values

1 Answer 136 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 2
Jacques asked on 29 Jan 2012, 08:35 AM
This might help someone in future: 

I had a problem with a RadComboBox where I was binding to a datasource for the DataTextField and DataValueField, but checking the state of the RadComboBoxItems I noticed that the Value was consistently set to an empty string "". 

I couldn't come up with any answers until I discovered that in the control declaration in HTML I had mistyped DataValueField as DataValue. 

The string thing is that the Control doesn't check for invalid properties and raise and exception??

Regards,
Jacques

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 01 Feb 2012, 01:17 PM
Hello Jacques,

Defining a not valid property in the markup of RadComboBox will not cause any error, instead it will be ignored. When trying to do so server-side, there will be an error saying that no such property exists.

The same happens with all HTML elements.

Regards,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ComboBox
Asked by
Jacques
Top achievements
Rank 2
Answers by
Ivana
Telerik team
Share this question
or