This is a migrated thread and some comments may be shown as answers.

ComboBox in grid don't show SelectedItem

1 Answer 163 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
anastasia
Top achievements
Rank 1
anastasia asked on 29 Jun 2018, 12:20 PM

Hello!

I have a grid, one column is for edit different data:

 <telerik:GridViewDataColumn
                                                Width="*"
                                                CellTemplateSelector="{StaticResource TypeCellTemplateSelector}"
                                                DataMemberBinding="{Binding Value}"
                                                Header="Value" />

TypeCellTemplateSelector chooses DataTemplate:

 <templateSelect:SettingCellTemplateSelector.ComboBoxTemplate>
                    <DataTemplate>
                        <telerik:RadComboBox
                            DisplayMemberPath="Description"
                            ItemsSource="{Binding Value.EnumValue, Converter={StaticResource ValueToEnumConverter}}"
                            SelectedItem="{Binding Value.Value, Mode=TwoWay}"
                            SelectedValuePath="Value" />
                    </DataTemplate>
                </templateSelect:SettingCellTemplateSelector.ComboBoxTemplate>

ValueToEnumConverter reterns collection, 

BUT when it shows RadComboBox is empty

please can You help me?

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 04 Jul 2018, 11:48 AM
Hello anastasia,

While I cannot be certain of the reason for this behavior without being able to reproduce this on my side, can you check out the Output window in Visual Studio for any binding errors that could be causing this?

I modified the ComboboxColumn SDK example in order to reproduce the described scenario, but I was not able to. I am attaching the sample project for your reference. Can you compare it with the setup on your side and see what you are doing differently?

On a side note you can check out the ComboBoxColumn article in our documentation to see if this RadGridView feature would be suitable for your scenario.

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ComboBox
Asked by
anastasia
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or