Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1255
DisplayMemberPath drill down causes exception
posted

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.Column="1"

                       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)

Parents Reply Children
No Data