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

GridViewComboBoxColumn Blank

2 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Adam
Top achievements
Rank 2
Adam asked on 09 May 2012, 09:01 PM
Hi,
I'm trying to add a GridViewComboBoxColumn to my grid and I've got everything set up per all the examples I've seen but I'm still getting a blank grid when I run my project.

Here is my code, can someone point out where I'm going wrong?
<telerik:RadGridView x:Name="grd" Margin="15,5,15,50" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2"  AutoGenerateColumns="False" IsFilteringAllowed="True"
IsReadOnly="True" CanUserResizeColumns="False" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False"      
telerik:StyleManager.Theme="Transparent"  AutoExpandGroups="True" >
<telerik:RadGridView.Columns>
<telerik:GridViewComboBoxColumn Width=".10*" Background="#6DFFFFFF" Header="Type" DisplayMemberPath="CAB" SelectedValueMemberPath="CAB" DataMemberBinding="{Binding CAB}" UniqueName="cboType" />                                      
<telerik:GridViewDataColumn Width=".10*" Background="#6DFFFFFF" Header="Model" />
</telerik:RadGridView.Columns>

((GridViewComboBoxColumn)this.grd.Columns["cboType"]).ItemsSource = from a in DATAList
                                                                                        select new DATAList { CAB = a.CAB };

Where DATAList is a class list


Thanks,
Adam

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 10 May 2012, 06:29 AM
Hi,

 It is not clear where you've assigned ItemsSource. Can you clarify? 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Adam
Top achievements
Rank 2
answered on 10 May 2012, 01:20 PM
Vlad,
You can disregard this post. I've decided it's more beneficial to put the RadComboBox inside the column header so I won't need to move forward with this post.

Thanks,
Adam
Tags
GridView
Asked by
Adam
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Adam
Top achievements
Rank 2
Share this question
or