I need to set RadComboBox SelectedValue property with URL parameter value:
ComboBox OnLoad event:
ComboBox OnDataBound event:
After page loads ComboBox is populated with data from GetDataList(), but selected value is first item in the list. It is intersting if i step through these methods in debugging mode, then value is correctly selected.
ComboBox OnLoad event:
someComboBox.DataSource = GetDataList();
someComboBox.DataBind();
ComboBox OnDataBound event:
someComboBox.ClearSelection();
someComboBox.Text =
string
.Empty;
someComboBox.SelectedValue = valueFromUrlParameter;
After page loads ComboBox is populated with data from GetDataList(), but selected value is first item in the list. It is intersting if i step through these methods in debugging mode, then value is correctly selected.