Hello Mayank,
Which version of the product do you use in your application?
Sincerely,
Code behind file: Xaml.cs code
private void OnValueChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
{ ValueEditor editor = (ValueEditor)e.OriginalSource; CellValuePresenter cvp = (CellValuePresenter)editor.Host; cvp.Value = editor.Value; RecordPresenter presenter = RecordPresenter.FromRecord(cvp.Record); if (presenter != null) { if (underWritinInfoNameSSNViewSE != null) { if ((Convert.ToString(cvp.Value).Contains(ViewModelConstants.SINGLE_HYPHEN_WITHOUT_SPACE) && Convert.ToString(cvp.Value).Length >= 13) || (!Convert.ToString(cvp.Value).Contains(ViewModelConstants.SINGLE_HYPHEN_WITHOUT_SPACE) && Convert.ToString(cvp.Value).Length >= 12)) underWritinInfoNameSSNViewSE.UpdateSSNAndName(cvp.Record.DataItem, e.OldValue); string tempNewValue = Utilities.RemoveHyphen(Convert.ToString(e.NewValue)); string tempOldValue = Utilities.RemoveHyphen(Convert.ToString(e.OldValue)); if ((!string.IsNullOrEmpty(Convert.ToString(tempNewValue)) && tempNewValue.Length != 12) || (string.IsNullOrEmpty(Convert.ToString(tempNewValue)) && tempNewValue.Length == 0)) { underWritinInfoNameSSNViewSE.EnableSSNOnRemoving(tempNewValue, tempOldValue); } } } }
In order to reproduce the behavior you have reported, is necessary to provide the code behind of the XAML you have sent and the implementation of the events used – for example the XamComboEditor ValueChanged handler, selection handlers if used and etc. It will be useful if you provide the code that disables the selected combo item.
Hi,
The solution didn't worked. With the fixed you provided the data in combo box was not populating.
Elaborate description is attached in screenshot.
I have attached a simple application based on your information. Can you elaborate it in order to reproduce the described behavior?