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
1104
ValuePath property missing?
posted

Hi,

I am trying to bind the XamComboEditor to an Entity Framework object.

The Visual Studio ComboBox has 2 properties for this, DisplayMemberPath and SelectedValuePath.

Using the XamComboEditor, I can only see DisplayMemberPath but no property for binding the value.

I found an example in the forum where the v10.2 DLLs are used, there seemed to be a property called ValuePath, but I cannot see this one in v13.1.

Please give me information on how to solve this.

Thank you,

Regards,

Daniel

Parents
  • 30945
    Verified Answer
    Offline posted

    Hello Daniel,

     

    Thank you for your post. I have been looking into your question and the ValuePath property still exists in verion 13.1. The ValuePath property is available for the XamComboEditor, which is located in InfragisticsWPF4.Editors.v13.1 assembly and since the XamComboEditor that you are using does not expose such property you should be using the XamComboEditor located in InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1 dll. We are providing two different XamComboEditors, the one in InfragisticsWPF4.Editors.v13.1 is originally created as our WPF’s combo and the one in InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1 was a Silverlight control, which from version 11.2 was shipped as cross platform control that is working in  both WPF and Silverlight.

     

    If you wish to have a ValuePath and Value properties for the XamComboEditor located in InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1, you can create a class that derives from the XamComboEditor and add this functionality. I have created a sample application for you, that shows how you can add a SelectedValue and SelectedValuePath properties to the XamComboEditor from InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir, MCPD

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

    ComboWithSelectedValue.zip
Reply Children