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
  • 17475
    Offline posted

    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?

    XamComboEditorDisplayPath.zip
Reply Children