Not worked with this.
Hello Mayank,
There is the same issue related to the XamComboEditor discussed and resolved in a forum post here: http://ko.infragistics.com/community/forums/t/104844.aspx
Explanation of the ComboBoxItem behavior you can see here: https://blog.elgaard.com/2009/09/03/wpf-making-combo-box-items-disabled-also-when-accessed-using-the-keyboard/
Sincerely,
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); } } }
<infra:FieldSettings.EditorStyle> <Style TargetType="{x:Type infraEditor:XamComboEditor}"> <Setter Property="ItemsProvider" Value="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.ListOfSSNItemsProvider}"/> <!--<Setter Property="ItemsProvider" Value="{Binding Path=DataContext.ListOfSSNItemsProvider,RelativeSource={RelativeSource Mode=FindAncestor,AncestorLevel=1, AncestorType={x:Type UserControl}} }" />--> <Setter Property="IsEditable" Value="True" /> <EventSetter Event="infraEditor:ValueEditor.ValueChanged" Handler="OnValueChanged" /> <Setter Property="DropDownButtonDisplayMode" Value="Always" /> <Style.Triggers> </Style.Triggers> </Style> </infra:FieldSettings.EditorStyle>
In which event do you disable the ComboBoxItem? Can you provide the code that disables the ComboBoxItem?
InfragisticsWPF4.v14.1
Version: 14.1.20141.1015