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

[Solved] RadCombobox missing SelectedValue

2 Answers 307 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
donoho
Top achievements
Rank 1
donoho asked on 24 Apr 2008, 01:38 AM
I'm using RadControls for ASP.NET AJAX released on 2008.APR.15, developing on Windows XP against SQL Server 2005 w/ Visual Studio 2005, while testing in IE 7 and FF 2.0.0.14

Skins and Scripts are manually registered and embedded resources are disabled.

I've got a RadCombobox Connected to a SQLDataSource which is populating (with list of States)  with no problems.  I've set watchs for the following properties for the RadComboBox:
SelectedValue
SelectedIndex
SelectedItem
Text

While debugging my project and setting a break point in it's SelectedIndexChanged even I noticed the following values present:

SelectedValue:    ""
SelectedIndex:    -1
SelectedItem:    null
Text:    "California"

The SelectedIndex Event is firing properly, The Text Value is being passed peoperly.  Where's my SelectedValue?

Side Note.  I'm trying to use it as a control parameter for another SQLDataSource.

2 Answers, 1 is accepted

Sort by
0
venm
Top achievements
Rank 1
answered on 24 Apr 2008, 02:56 AM
When you databind, set the "dataValue field" property for the Combobox.


0
donoho
Top achievements
Rank 1
answered on 24 Apr 2008, 04:39 PM
o_0  Thanks for the feedback. 

The DataSourceID, DataTextField, DataValueField of the combobox were all populated at design time.  I've been over every property three times after reading the documentation and scanning the forums.
Tags
ComboBox
Asked by
donoho
Top achievements
Rank 1
Answers by
venm
Top achievements
Rank 1
donoho
Top achievements
Rank 1
Share this question
or