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

Combo in Grid

2 Answers 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Betsy
Top achievements
Rank 1
Betsy asked on 24 Mar 2011, 10:24 PM
Can you please tell me the best way to achieve all the following:
1.  combobox in grid
2.  multi-column display in drop down list only
3.  type head in combobox

I tried the GridViewComboColumn but could not get type ahead or multi-column in the drop down list only.  I now have a CellTemplate with a RadCombobox but am having other issues like tab not changing the focus from a regular cell directly to the combobox and the selected row not changing when focus does hit the combobox.

Please help as the current implementation of trying to get an editable combobox in a grid seems very unweildy.

Thank you.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 25 Mar 2011, 08:14 AM
0
Mohamed
Top achievements
Rank 2
answered on 29 Mar 2011, 09:33 AM
Regarding to combo in grid you can use data template like this example:

 <telerik:GridViewDataColumn Header="Test Column" UniqueName="testColumn"  DataMemberBinding="{Binding colName}" >
                                                                        <telerik:GridViewDataColumn.CellEditTemplate>
                                                                            <DataTemplate>
                                                                                <telerik:RadComboBox Name="comboTest" HorizontalAlignment="Left"
                                                                                                         VerticalAlignment="Top" Width="130"
                                                                                                     Loaded="comboTest_Loaded"                                                                                                                                              SelectionChanged="comboTest_SelectionChanged"  />
                                                                            </DataTemplate>
                                                                        </telerik:GridViewDataColumn.CellEditTemplate>
                                                                    </telerik:GridViewDataColumn>
Tags
GridView
Asked by
Betsy
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Mohamed
Top achievements
Rank 2
Share this question
or