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
125
SelectedText goes blank in XamComboEditor
posted

Hi,

When I select an item in a comboEditor after binding, the item gets selected but the selectedText is blank (as is the control on the screen).

 This is the control:

<igEditors:XamComboEditor x:Name="cmbCompany" Margin="0,0,12,0" Theme="Office2k7Blue" IsEditable="True">
      <igEditors:XamComboEditor.ItemsProvider>
           
<igEditors:ComboBoxItemsProvider />
     
</igEditors:XamComboEditor.ItemsProvider>
</igEditors:XamComboEditor>

 This is the binding code:

DataTable companies = ServiceUtilities.GetCompanyByNameList();
cmbCompany.ItemsProvider.ItemsSource = companies.DefaultView;
cmbCompany.ItemsProvider.DisplayMemberPath =
"Name";
cmbCompany.ItemsProvider.ValuePath =
"ID";

How can I make the selected item show?

Parents
No Data
Reply
  • 2320
    posted

     

    Well for a start, I think the SelectedText property doesn't do what you think it does. It's not like the SelectedItem or SelectedValue property that we're all used to. Rather it gets/sets the editable text in the editable XamComboEditor that is/has been highlighted (aka. selected). So if there's nothing in the XamComboEditor that has been selected, of course that's going to be an empty string.

     

    As for your other problem, I'm not sure. Maybe if you post a small sample project which replicates the problem...?

Children