Hi,
Previously I posted my question at the end of http://community.infragistics.com/forums/t/28291.aspx, then I realized it's already marked as Answered, so I make this new post:
I set ItemsSource, DisplayMemberPath and ValuePath all on ItemsProvider, however, the dropdown shows only System.Data.DataRowView for each item, but when I select one item, I do see correct value displayed. I use the combobox editor in grid.Here is digested from my code:in XAML <igEditors:ComboBoxItemsProvider x:Key="notificationTypesProvider" DisplayMemberPath="desc" ValuePath="code"> </igEditors:ComboBoxItemsProvider>... <igDP:Field Name="notificationType" Label="type" Width="100"> <igDP:Field.Settings> <igDP:FieldSettings> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type ComboEditor:XamComboEditor}"> <Setter Property="ItemsProvider" Value="{StaticResource notificationTypesProvider}" /> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>in the code, i set ItemsProvider.ItemsSourcePlease suggest, Thanks!Yu
Hello Yu,
Can you reproduce that issue with the attached sample?
Alex,
Thanks for the reply! The sample project is very helpful, it allows me to create a test solution easily. I would suggest to have them published somewhere so that people can report issues this way.
I modified the project with my custom settings and it worked. However, when I run the custom project from my start-up project, I see DataRowView in drop-down again. I traced it down and found out it was caused by a ResourceDictionary setting in the App.xaml in my start up project --- there is one setting in my theme configuration to customize ComboBoxItem style. It caused the issue.
It is a big project and I wouldn't be able to find it out so soon without your help.
Thanks very much!
Yu
Yu,
Thank your for your feedback. Glad to have helped you. We do post samples now and then in our blogs.
I also post solutions to frequently asked questions when I have time, so you may keep an eye on it :)