How do I have my xamlComboEditor set as IsEditable, update a string field on its SelectedItem when I edit the current displayed text?
IsEditable="True" DisplayMemberPath="Name" ItemsSource="{Binding Project.Runs}" SelectedItem="{Binding Project.SelectedRunConfig}" SelectedIndex="{Binding Project.SelectedRunIndex}" />
The SelectedItem has a field called Name whick is the display member path. I wish to be able to edit the SelectedItem Name by simply editing the ComboEditor text. How can I achieve this?
Hello,
Here is a simple solution for your issue.
If you have any question do not hesitate to ask.
Regards,
Anastas
I'm afraid that doesn't work. Initially it seems like it does but if u play about with it you will see that after changing the text and clicking in the text field below and then back to the combo that the text gets reset back to the original text.
Whats worse when the binding is removed from the textbox it does nothing so somehow the textbox binding was connected with it working, when I say working it was really. In production I would not have a textbox, so is there a solution with just the combo that works?
Hi,
I made little modification with project. Now you will be available to edit selectedItem with pressing Enter, showing the dropDown of xamComboEditor. And also the changes will be saved even if you click on the textBox under xamComboEditor and click again in xamComboEditor.
Hope this helps.
I'm trying to do something similar to this example, except i want to get that behaviour to occur for a XamComboEditor that resides inside a field in a XamDataGrid (as in this example http://help.infragistics.com/Help/NetAdvantage/WPF/2011.1/CLR4.0/html/xamComboEditor_Using_xamComboEditor_to_Edit_a_Field_in_xamDataGrid.html)
I've got an example project almost working, but it won't save the changes to the nested xamcomboeditor field as I would expect it to.