Unable to get populate GridViewComboBox dropdown in RadGridView

2 Answers 124 Views
General Discussions GridView
Pavel
Top achievements
Rank 1
Iron
Iron
Pavel asked on 08 Jul 2021, 12:46 PM

This is odd, I am using the latest SP1 libraries and have followed all the steps and only see this in the WPF application. The Activities column should look like a drop-down combo box when the green checkbox is showing. Obviously, I am missing something, but not sure what it is. I hope I can look at it fresh in the morning and figure it out, but if there are tips, please let me know.

My XAML has this definition for the column:

<telerik:GridViewComboBoxColumn Header="Activities" Width = "271" DataMemberBinding = "{Binding Description}" SelectedValueMemberPath = "SicCodeValue" DisplayMemberPath = "SicCodeDescription" IsLightweightModeEnabled="true" IsComboBoxEditable="True">
</telerik:GridViewComboBoxColumn>


and I set up my itemssource via code using the following line on data load:

(this.myList.Columns[2] as GridViewComboBoxColumn).ItemsSource = (ViewModel as MyViewModel).SicCodes;

2 Answers, 1 is accepted

Sort by
0
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
answered on 12 Jul 2021, 07:34 AM | edited on 12 Jul 2021, 07:37 AM

Hello.

 

From what I understand, is it correct that the combobox column is not visible?

Currently, I can't figure out the problem with that alone, so I've attached my example.
-  In the GridView or ComboBoxColumn, if the value of the IsReadOnly property is true, the combo box is not visible.

 

There are several ways to configure Comboboxcolumns.(document for details)

https://docs.telerik.com/devtools/wpf/controls/radgridview/columns/columntypes/column-types-combobox-column


Hope this helps.

0
Martin Ivanov
Telerik team
answered on 12 Jul 2021, 07:30 PM

Hello Pavel,

I would recommend you to check the Missing Controls in the UI article.

Also, double check if you have the Telerik.Windows.Controls.Input.xaml file merged in App.xaml in case you use NoXaml dlls.

If this doesn't help can you share a project showing the troublesome behavior?

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions GridView
Asked by
Pavel
Top achievements
Rank 1
Iron
Iron
Answers by
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
Martin Ivanov
Telerik team
Share this question
or