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

page lifecycle RadComboBox vs standard DropDownList

1 Answer 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Craig Wallace
Top achievements
Rank 1
Craig Wallace asked on 25 Aug 2010, 05:29 PM
Hi,

I am trying to set the SelectedValue of a RadComboBox that uses declarative databinding.  What I am finding is that the value is not set, as the combobox is not yet databound in the page load event.  This seems to differ with my experience with the standard asp.net dropdownlist, which is databound at that point.

Am I missing something here?  Is this expected behaviour?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 25 Aug 2010, 06:43 PM
Hello Craig,

I believe that behaviour is expected. Instead, before setting the SelectedValue, call DataBind on the RadComboBox.

I hope that helps.
Tags
ComboBox
Asked by
Craig Wallace
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or