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

Radcombobox not getting the selected value

1 Answer 116 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gean
Top achievements
Rank 1
Gean asked on 12 Dec 2013, 02:09 AM
Here is my code:

RadComboBox sample= this.Master.FindControl("ContentPlaceHolder").FindControl("rcb1") as RadComboBox;
sample.SelectedValue = 1;


It doesn't select any values on my combobox.
Did i make any mistake? I really dont know what to do next.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Dec 2013, 04:33 AM
Hi Gean,

Please have a look into the following code snippet to get the selected value of RadComboBox.

C#:
RadComboBox combo = (RadComboBox) this.Master.FindControl("RadComboBox1");
combo.SelectedValue = "1";

Thanks,
Shinu.
Tags
ComboBox
Asked by
Gean
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or