ComboBox in grid don't show SelectedItem

2 posts, 0 answers
  1. anastasia
    anastasia avatar
    2 posts
    Member since:
    Jan 2017

    Posted 29 Jun 2018 Link to this post


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

                                                    CellTemplateSelector="{StaticResource TypeCellTemplateSelector}"
                                                    DataMemberBinding="{Binding Value}"
                                                    Header="Value" />

    TypeCellTemplateSelector chooses DataTemplate:

                                ItemsSource="{Binding Value.EnumValue, Converter={StaticResource ValueToEnumConverter}}"
                                SelectedItem="{Binding Value.Value, Mode=TwoWay}"
                                SelectedValuePath="Value" />

    ValueToEnumConverter reterns collection, 

    BUT when it shows RadComboBox is empty

    please can You help me?

  2. Vladimir Stoyanov
    Vladimir Stoyanov avatar
    633 posts

    Posted 04 Jul 2018 Link to this post

    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.

    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.
Back to Top