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

Get the selected value from ComboBox

2 Answers 96 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
trent
Top achievements
Rank 1
trent asked on 28 Sep 2010, 01:07 AM
Hi there,


All Im wanting to do is get the value from the combo box when i do a post back so that I know what item was selected. This isnt in the manual but it must be a failry common task.

Please help.


Cheers,

Trent

2 Answers, 1 is accepted

Sort by
0
trent
Top achievements
Rank 1
answered on 28 Sep 2010, 02:01 AM
Well i managed to get this working easily by using RadComboBox1.SelectedValue.


The problem now is setting the default value back when it loads. There appears to be some kind of bug.


I set the RadComboBox1.SelectedValue = "ID" when it loads, and it selects it but the text does not populate.


If i disable EnableAutomaticLoadOnDemand, it works, but with it turned on it will not put my text in the box... Have tried just about everything.

0
trent
Top achievements
Rank 1
answered on 28 Sep 2010, 02:20 AM
NVM i managed to correct this issue by putting the  code in the RadComboBox1_Load Sub

(y)
Tags
ComboBox
Asked by
trent
Top achievements
Rank 1
Answers by
trent
Top achievements
Rank 1
Share this question
or