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

Setting SelectedValue not working

1 Answer 47 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 26 Feb 2010, 09:59 PM
ddlRoles.SelectedValue = "User"

Trying to set the value of a RadComboBox(ddlRoles).  The value exists in the combo box, but it is not being selected.  Is this a known issue at all?

1 Answer, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 26 Feb 2010, 10:05 PM
I figured it out.  When I dynamically created the items in the combobox I only did New RadComboBoxItem(value).  I needed to do New RadComboBoxItem(value, value).  It doesn't default the value to the item name like it does in the regular textbox control.
Tags
ComboBox
Asked by
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Share this question
or