I have a XamMultiColumnComboEditor with:AllowMultipleSelection="True"CustomValueEnteredAction="Add"MultiSelectValueDelimiter=";" ItemsSource="{Binding TestStrings}"
When I type in this control and add a value that is not in the underlying collection, it all works fine and it adds it to list as expected. However, why I try to add multiple values that are not in the list using the delimiter ";" the control clears the selection
For Example:If my list TestStrings is { "a","b","c"}And I type "d" into control, the value "d" is added and selected as expected because of the CustomValueEnteredAction="Add"However, if i want to add "d" and "e", i will type, "d;e". Typing this clears d from the text, removes d from selection and only selects e. This is obviously not correct.I am using version 14.1.20141.2108.Is this fixed in any later versions of Infragistics? Is there any workaround for this in my version?
Hello JG,
Thank you for verifying that this issue I am seeing is the same as what you are seeing.
Regarding another technique to get the selected items of the XamMultiColumnComboEditor, you could use or bind the SelectedItems collection of this editor. This property expects an ObservableCollection<object> and is bind-able. This may work as an alternative to using the IsSelectedMemberPath, although I am still seeing the problematic behavior when using this as well.
This is unexpected behavior, and I have verified that this issue still exists in the versions that are currently receiving development (17.1, 17.2), and as such I have asked our engineering teams to examine this issue further. To ensure it receives attention, I have logged this behavior in our internal tracking system with a development ID of 250966. I have also created you a private support case so you can be notified of a fix when it becomes available. This support case has an ID of CAS-194515-W1Z2X8, and you can access it at https://ko.infragistics.com/my-account/support-activity.
Please let me know if you have any other questions or concerns on this matter.
Thank you Andrew. In the solution you have provided, it looks like you have replicated this bug. Although the symptom isn't exactly the same, it's very similar and displays the problem I am having well.
Typing "d;e;" should add both these items and select them both. As you can see this isn't happening.
Is there any other workaround you have that doesn't use code behind? Possibly using another technique to get the selected items?
Thank you for your update(s) on this matter and the information that you are using the IsSelectedMemberPath in this case.
I have noticed that you have mentioned that you are typing "d;e;" in the sample project that I had sent you, as I had mentioned above as well. It appears that I was already adding the letter "d" into the XamMultiColumnComboEditor, though, and so this may not be a valid test, since the item "d" already exists.
I have removed item "d," and when testing against the IsSelectedMemberPath code that you mentioned, I'm still unable to see the behavior that you are seeing, although I am seeing some erroneous behavior. When I type "d;e;" the "e" disappears, and if I type "d;e" and tab out, the ";e" disappears as well. If the IsSelectedMemberPath is not set, everything is working normally on my end, though, which leads me to believe that this issue is directly related to that.
It is still possible that we are seeing different bugs in this case, though, and so I would like you to test my updated sample project that I am attaching to see if the behavior you are seeing is different or not.
Please let me know of the behavior that you see with this updated sample project. You also may notice the beginnings of an attempted workaround commented out in the code-behind of this application, which I would recommend you consider following a modified version of if you must continue to set the IsSelectedMemberPath in this case. I will also be testing this issue against later versions shortly to see if it is fixed.
Please let me know if you have any other questions or concerns on this matter.4101.MultiColumnComboNewValueTest.zip
Sorry, ignore my previous reply, I was referring to a wrong sample solution.In regards to the Andrew's initial reply and the solution he provided, the bug is clearly reproducible in the solution he provided.
When i type "d;e;", "d" is cleared from the text the user types. (Please note, the list of available items in the drop down is fine)For example, I want to add new items, "d" and "e" and select them both by typing "d;e;". The bug in this control means this is not possible as d is cleared from the text as soon as "e;" is typed.
Please also note, I am using IsSelectedMemberPath="IsSelected" in this control to indicate the item has been selected.
I recommend that you provide a sample demonstrating the behavior. I looked at Andrew's case and it is referring to 14.1.2108
Let us know if you have any questions.