UXListBox null ref exception

1 reply. Last post: April 18, 2011 4:52 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Ross SantosMember

Hello,

I have a UXListBox bound to an Entity, the display member path and image path are nested within this entity two level deep, for instance:

Events.Participant.NameLast

Events.Participant.Photo

When I try to type a character to search on the list, it throws a null reference exception.

I checked some other UXListBoxes that search correctly and found on those, I was using a single level entity and the properties are on that entity.

Below is the code:

            <Intersoft:UXListBox  ItemsSource="{Binding OCEventDetailHS, Mode=TwoWay}" 

                                  SelectedItem="{Binding CurrentEventDetailHS, Mode=TwoWay}"

                                  SelectedIndex="{Binding CurrentOCEventDetailHSSelectedIndex, Mode=TwoWay}"

                                  Margin="2" 

                                  DisplayMemberPath="Participant.NameFullLastFirstMiddleNick" 

                                  ImageMemberPath="Participant.Photo" 

                                  AllowDropItem="False" AllowMoveItem="False" AllowRemoveItem="False" 

                                  Style="{StaticResource UXListBoxTransparentStyle}" 

                                  ItemContainerStyle="{StaticResource UXListBoxImageText20x20ItemStyle}"

                                  Height="170" Width="300"

                                  />

Please advise.
Thanks,
Ross

All times are GMT -5. The time now is 1:43 PM.
Previous Next