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

combobox with allowcustomtext empty

1 Answer 34 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 16 Nov 2011, 04:55 PM
im trying to get the value of a combobox when the user types in the value rather than choosing it.

initially the combobox is empty, i type a value but both selectedvalue and text properties are empty in code behind when i want to store the value.

i would have expected the latter to be the way to get at this.

how do i get the typed in values when using the combobox this way?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Nov 2011, 04:52 AM
Hello,

You can try the following code snippet.
C#:
protected void RadComboBox2_TextChanged(object sender, EventArgs e)
   {
       Label l1 = new Label();
       l1.Text = RadComboBox2.Text;
       form1.Controls.Add(l1);
   }

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