page lifecycle RadComboBox vs standard DropDownList

2 posts, 1 answers
  1. Craig Wallace
    Craig Wallace avatar
    118 posts
    Member since:
    Jan 2005

    Posted 25 Aug 2010 Link to this post

    Hi,

    I am trying to set the SelectedValue of a RadComboBox that uses declarative databinding.  What I am finding is that the value is not set, as the combobox is not yet databound in the page load event.  This seems to differ with my experience with the standard asp.net dropdownlist, which is databound at that point.

    Am I missing something here?  Is this expected behaviour?

    Thanks.
  2. Answer
    Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 25 Aug 2010 Link to this post

    Hello Craig,

    I believe that behaviour is expected. Instead, before setting the SelectedValue, call DataBind on the RadComboBox.

    I hope that helps.
Back to Top