Get the DataTextField

3 posts, 1 answers
  1. Mike
    Mike avatar
    338 posts
    Member since:
    Jun 2008

    Posted 29 Jul 2010 Link to this post

     I know how to get the SelectedValue, but I also want the DataTextField/Name when I submit the form. Anyone know how to obtain it when I submit the form?

  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Jul 2010 Link to this post

    Hello Mike,


    You will get the selected item text by using following code:

    // string value = RadComboBox1.SelectedValue;  // Value
    string text = RadComboBox1.SelectedItem.Text;  // SelectedItem text



    -Shinu.
  3. Mike
    Mike avatar
    338 posts
    Member since:
    Jun 2008

    Posted 30 Jul 2010 Link to this post

    Thank you Shinu!
Back to Top