I used the sample posted here:http://es.infragistics.com/community/forums/p/62825/319503.aspx
And I have the combobox working paritally. It allows me to multi-select from a working datasource, but I can't seem to get the data in the cell to bind to the actual data source.
When I use a normal combobox, it works fine, but when I use the multiselect sample it doesn't.
It's likely just a problem with my WPF skills, still getting used to it.
If you have a sample similar to the linked one that binds to a source (with checkboxes and text in the cell set when it starts up or something), and updates the source when changed, it would be very helpful.
Thanks!
I just implemented this solution and I like it a lot! I had a question as to how can I get the combo box to open on the first click in the cell? I have CellClickAction="EnterEditModeIfAllowed" in the field settings, but it still requires a double-click to enter edit mode.
I'm using v17.1.
Hello,
Thank you for your reply. I am very glad that the approach I have suggested was helpful for you. Please let me know of you need any further assistance on the matter.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
It's working now. Thanks for the assistance.
Great customer service!
I am just checking if you require any further assistance on the matter.
Thank you for your reply. I have been looking into the code snippets that you have attached and by default, the DataType of the UnboundField is string, which means that value of the cells of the UnboundFields will be treated as strings. The custom XamComboEditor that I have created for you, is supposed to be used to cells, which has a collection as value and the selected items of the editor are synchronized, with the value of the cell and when you edit and when you select/deselect items from the XamComboEditor, you are actually adding/removing items from the collection (the value of the cell). To be able to use the editor, you should set the DataType of the UnboundFields to the type of the collection that the editor will be editing. For example, if you have a ObservableCollection<string> as value of a cell edited by the XamCombEditor, you should set the DataType of the UnboundField as follows:
unboundField.DataType = typeof(ObservableCollection<string>);
I have made some changes to the custom editor, since there were some issues, when trying to edit a collection from primitive type. I am attaching a modified version of the sample that I have sent, which shows how you can use the editor with UnboundFields.
Please let me know if you need any further assistance on the matter.