Hi there
I try to use xamComboEditor to "translate" a string value in a property to an image with a description. The object which contains this property is in a collection, which is bound to a xamDataGrid. I'm able to achieve the wanted behavior, when the xamComboEditor is in edit mode and/or the list is dropeddown.
But how to show the DataTemplate, when the xamComboEditor is collapsed and/or not in edit mode?
In the sample browser, the wanted behavior can be achived, when the property 'IsEditable' is set to false. But this does not work for me here, also i need to have the properties 'DisplayMemberPath' and 'ValueMemberPath' set correctly, so the xamComboEditor works correctly in the xamDataGrid context and bound to a property containing a System.String and not an object of the values in the xamComboEditor ItemsSource.I created a simplified test project, which shows my problem at runtime. Any tipps how to achieve this? In the sample, there is an "Orchestrator" which is the DataContext. This orchestrator does implement two properties:Items --> The data
ValueDescriptions --> The translation of Item.Type to the Image and Description
Regards
xamDataGrid_DropDownWithImages.zip
Hello Andreas,
Thank you for contacting Infragistics. Please try clarifying your requirements and the issue(s) you are running into. Note, if all your looking to do is template the columns cells when not in edit mode then you can use a DisplayTemplate and also an EditTemplate.
eg.
https://www.infragistics.co.kr/help/wpf/xamdatagrid-configuring-template-field
Thank you for your reply. But i think the requirements and issues are pretty clear?Please download the attached sample and have a detailed look. I really don't know how to explain further..