Having trouble binding to uxcombobox. Is selectedvalue the right property?

3 replies. Last post: July 26, 2010 11:28 AM by Jimmy Petrus
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Hue HaMember

How are you meant to bind to a uxcombobox?

Lets say I have an object "MyObject" which has a property "ItemID" which is a fk to a product table

I currently have the following xaml

        <Intersoft:UXComboBox Name="cboType"
ItemsSource="{Binding Source={StaticResource ProductSource}, Path=Items}"
DisplayMemberPath="ItemDesc"
SelectedValuePath="ItemID"
SelectedValue="{Binding MyObject.ItemID, Mode=TwoWay}"
/>

The dropdown list is populated correctly and the binding appears to work from the combobox down to the object.  However, when the page loads the value is not changing the combobox.  I tried to do a test in code and it looks like setting the selectedvalue does not set the combobox display.  Is there another property I am meant to bind to?


Hue



All times are GMT -5. The time now is 7:41 AM.
Previous Next