public void FormControlAddress_StateReferenceCompleted(Object sender, Server.Application.StateReferenceCompletedEventArgs e) { // FINISH LINKING REFERENCE CONTROLS foreach (Client.Core.Forms.Control currentControl in form.GetAllControls()) { if (currentControl.ControlType == Mercury.Server.Application.FormControlType.Address) { Client.Core.Forms.Controls.Address addressControl = (Client.Core.Forms.Controls.Address)currentControl; Telerik.Windows.Controls.RadComboBox stateComboBox = (Telerik.Windows.Controls.RadComboBox)FindName(addressControl.ControlId.ToString() + "_State"); if (stateComboBox != null) { stateComboBox.ItemsSource = e.Result.ResultList; // stateComboBox.SelectedValue = addressControl.State; stateComboBox.SetBinding(Telerik.Windows.Controls.RadComboBox.SelectedValueProperty, renderEngine.PropertyDataBinding("State", addressControl, System.Windows.Data.BindingMode.OneWay)); } } } return; }