Hi all,
I´m using XamComboEditor (InfragisticsWPF4.Controls.Editors.XamComboEditor.v13.1) with multiselect enabled (AllowMultipleSelection="True") in my view.In the view model I have a list of objects that is bound to the combo´s ItemsSource property. Displaying the items in the combo works fine and with "only" two days of work (I´m pretty new to WPF) and a lot of ugly code-behind I´m now able to get a collection of the selected items from the combo. Unfortunately I cannot bind something to the combo´s SelectedItems property, as I would expect. So this is really cumbersome but works at least somehow with code-behind.
I´m now get stuck with selecting items in the combo depending on changes in the collection of my view model. Even with code-behind I´m not able to set the combo´s SelectedItems property.
I´m not sure if I described my problem clear. What I want to do is:- bind a multiselect enabled XamComboEditor to a collection of objects in the view model- in the view model: get a collection of all items selected in the XamComboEditor (selected by the user)- in the view: update selected items in the XamComboEditor depending on the items in (bound) collection (change in view should be triggered by adding/removing items to the bound collection in the view model).
Are there any examples or tutorials? I searched the web for hours but did not found anything useful.
Thanks in advance,Daniel
Hello Daniel,
Currently the functionality you need is not supported and it has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
thank´s Stefan.
Of course I already know the linked post... which in the end links to another one.And this contains a "solution" that is unfortunately not working.
Don´t get me wrong but I´m really disappointed with the XamComboEditor. Why does it basically support something like multiselection when the usage of this feature is so extremely cumbersome? It´s probably more easy to create a new user control and implement my own multiselect functionality.Why is it not possible to simply bind a collection to the SelectedItems property and get/set the selected items with this. That´s the way I would expect it to work.Daniel
Thank you for your post. I have been looking into it and I can suggest you use this forum thread:
http://ko.infragistics.com/community/forums/t/64916.aspx
where a similar issue is discussed.
Hope this helps you.