In the following code examples, the first XamComboEditor works but the second throws the exception and trace below. We've determined the exception is caused by the compound property in the DisplayMemberPath setter "ServiceDeliveryPointTypeCodeInfo.CodeDescriptionText" where ServiceDeliveryPointTypeCodeInfo is a complex object property on the item and CodeDescriptionText is a string property on that object. AllowFiltering is true for both and all other properties are identical.
Is this a known issue? Something that will be resolved in a future release?
<igXaml:XamComboEditor Name="Service"
Grid.Column="1"
SelectedItem="{Binding SelectedLocationServiceInfo, Mode=TwoWay}"
ItemsSource="{Binding AvailableServices}"
DisplayMemberPath="CodeDescriptionText"
OSControls:MarkupUI.IsRequired="true" />
<igXaml:XamComboEditor Name="Type"
Grid.Row="1"
SelectedItem="{Binding SelectedServiceCodeServiceDeliveryPointTypeCode, Mode=TwoWay}"
ItemsSource="{Binding AvailableServiceCodeServiceDeliveryPointTypeCodes}"
DisplayMemberPath="ServiceDeliveryPointTypeCodeInfo.CodeDescriptionText"
OSControls:MarkupUI.IsRequired="true"
IsEnabled="{Binding SelectedLocationServiceInfo, Converter={StaticResource ObjectToBoolConverter}}" />
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
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.DelayTracker_Tick(Object sender, EventArgs e)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Hi and thank you for contacting Infragistics!
I have been looking into the provided stack trace and code snippet, and tried to reproduce the behavior on my side. The SearchAndFilterItemsByText method is called when the user type in the editor and the items are filtered accordingly. This is the scenario I have tested with the attached sample project and no exception is thrown when using version 14.1.20141.2083. Could you please have a look at the solution and modify it to illustrate your approach or upload your simple application? Which version of our assemblies you are using?
Hello,
I am just checking if you had a chance to look into this and if you would like any further assistance on the matter.
Please feel free to contact us if the issue still persist. Providing us as much details as possible or modifying the sample project would help the investigation of the issue. Thank you.