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

[Solved] SelectedIndex

1 Answer 126 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tom Smoth
Top achievements
Rank 1
Tom Smoth asked on 01 Sep 2009, 06:10 PM
Hi,

I am observing some unexpected behavior when using RadComboBox - I set SelectedIndex to some value, say 2,  in code behind, but then if I type something in the input  and trigger a postback (say, via an asp:Button), the selected item is not changed , and the Text property doesn't get updated - everything stays the same.

I would expect that every time I set SelectedIndex to some item index, the Text and input contents get updated, no matter what is there already.

Is this a bug?

Thanks,
Tom

1 Answer, 1 is accepted

Sort by
0
Casey
Top achievements
Rank 1
answered on 02 Sep 2009, 01:15 PM
Tom,

Could you post the RadComboBox definition as well as the code used to set the SelectedIndex and then the code (if any) that is fired by the button's OnClick event?

Casey
Tags
ComboBox
Asked by
Tom Smoth
Top achievements
Rank 1
Answers by
Casey
Top achievements
Rank 1
Share this question
or