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

[Solved] Combobox in RadGridView

2 Answers 139 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.
JungTae
Top achievements
Rank 1
JungTae asked on 30 Sep 2010, 07:21 PM
I need to place a combobox option in Telerik's RadGridView Column, but the comboboxColumn doesn't work really well with my data

I would like to do something similar to the following using a GridViewDataColumn or any other alternative to the ComboBoxColumn

<data:DataGridTemplateColumn Header="Types" Width="100" >
                            <data:DataGridTemplateColumn.CellTemplate >
                                <DataTemplate >
                                    <TextBlock x:Name="typeCell" Text="{Binding Types}"   />
                                </DataTemplate>
                            </data:DataGridTemplateColumn.CellTemplate>
                            
                            <data:DataGridTemplateColumn.CellEditingTemplate>
                                <DataTemplate>
                                    <ComboBox x:Name="typeSelection"
                                              ItemsSource="{Binding typeList.Types}"
                                              SelectedItem="{Binding Types,Mode=TwoWay}"
                                              SelectionChanged="typeSelection_SelectionChanged"
                                              Loaded="typeSelection_Loaded">                                        
                                    </ComboBox>
                                </DataTemplate>
                            </data:DataGridTemplateColumn.CellEditingTemplate>

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 01 Oct 2010, 03:29 PM
Hi JungTae,

Indeed there is such alternative and your XAMLseems  ok . However to be able to help you I wil need  bit more details .

Please paste me the implementation of your business objects , and the expected behavior from RadGridView, and I will provide a small working sample for you .

Sincerely yours,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
JungTae
Top achievements
Rank 1
answered on 01 Oct 2010, 04:11 PM
Thanks for the reply, but I have found the workaround this morning by placing the traditional combobox in the GridViewDataColumn.. Thank you for the reply though
Tags
GridView
Asked by
JungTae
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
JungTae
Top achievements
Rank 1
Share this question
or