combobox with allowcustomtext empty

2 posts, 0 answers
  1. Mark
    Mark avatar
    20 posts
    Member since:
    Oct 2011

    Posted 16 Nov 2011 Link to this post

    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?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 16 Nov 2011 Link to this post


    You can try the following code snippet.
    protected void RadComboBox2_TextChanged(object sender, EventArgs e)
           Label l1 = new Label();
           l1.Text = RadComboBox2.Text;

Back to Top