Set RadComboBox Initial Value using WebService OnDemand

2 posts, 0 answers
  1. B
    B avatar
    42 posts
    Member since:
    Jan 2010

    Posted 01 Dec 2010 Link to this post

    I'm trying to use the RadComboBox with asp.net ajax webservice in ondemand mode.  If a client edits a record, i need to open an asp.net form in "edit" mode and display the current selected values.  How do i set the value and text on the RadComboBox?  The text part is easy, but the value property on the control is read only.

    I'd preferably like to set the initial value like the code below.  Is this possible?

    Entity e = db.lookupCustomerByID(100);
    if(e != null)
    {
    RadComboBox1.Text = e.LastName;
    RadComboBox1.Value = e.CutomerID;
    }
  2. B
    B avatar
    42 posts
    Member since:
    Jan 2010

    Posted 01 Dec 2010 Link to this post

    never mind.  it appears the following will work.  I originally didn't try it because the tooltip for SelectedValue made it sound like it is read only.

    RadComboBox1.SelectedValue = e.CustomerID;
Back to Top