I have a editable autocomplete combo bound to an IEnumerable under the current 2014.1 version.Everything works fine.. however after I change the value three times by selecting different values in the combo I get this error:
System.NullReferenceException: "Object reference not set to an instance of an object." at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at Infragistics.Controls.Editors.ComboEditorBase`2.InvalidateDropDownPosition(Boolean adjustHeight) at Infragistics.Controls.Editors.ComboEditorBase`2.DataManager_DataUpdated(Object sender, EventArgs e) at Infragistics.DataManagerBase.OnDataUpdated() at Infragistics.DataManager`1.ApplyClientDataManipulations(Boolean setSortedFilteredDataSource) at Infragistics.DataManager`1.ResolveFilteredSortedPagedDataSource() at Infragistics.DataManagerBase.InvalidateSortedFilterdDataSource() at Infragistics.DataManagerBase.ClearCachedDataSource(Boolean invalidateTotalRowCount) at Infragistics.DataManager`1.ClearCachedDataSource(Boolean invalidateTotalRowCount) at Infragistics.DataManagerBase.set_Filters(RecordFilterCollection value) at Infragistics.Controls.Editors.ComboEditorBase`2.SearchAndFilterItemsByText(String text, Boolean performAutoComplete) at Infragistics.Controls.Editors.ComboEditorBase`2.ProcessEditorText(Boolean allowDropDown, Boolean attemptAutoComplete) at Infragistics.Controls.Editors.ComboEditorBase`2.ProcessEditorText(Boolean allowDropDown) at Infragistics.Controls.Editors.ComboEditorBase`2.Editor_LostFocus(Object sender, RoutedEventArgs e) at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Hello Greg,
Thank you for your post!
I have been looking into your issue and have created a small sample application to test the functionality you have mentioned and I was not able to reproduce the issue.
Currently the XamComboEditor supports collections of type IEnumerabe with complex properties. For example ObservableCollection<Person>.
I am attaching the sample application I have been testing with for your reference. Would you please modify it with the functionality you are using, so it reproduces the issue. This way I would be able to further investigate this issue for you.
Thank you for the cooperation. Looking forward to hearing from you.
It's probably that I'm not implementing the complex properties. I found the error message really confusing though.
I have since switched to the standard Silverlight combobox which seems to work ok with the same collection.
Maybe I will revisit this in the future if the standard combobox doesn't suit my needs.
Thank you for your help,
Greg