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

ComboBoxColumn - drop down on focus

1 Answer 137 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 19 Apr 2010, 06:51 PM
I need to support having combo box columns display their drop downs when the cell is given focus, rather then the default behavior of clicking on the cell, then clicking on the dropdown arrow.  Are there any examples of doing this?

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 22 Apr 2010, 12:16 PM
Hi Gary,

You can achieve this with the following xaml code:

<telerik:GridViewComboBoxColumn Header="Position" DataMemberBinding="{Binding PositionID}"
                                                DisplayMemberPath="Name" SelectedValueMemberPath="ID"
                                                EditTriggers="CellClick">
                    <telerik:GridViewComboBoxColumn.EditorStyle>
                        <Style TargetType="telerik:RadComboBox">
                            <Setter Property="OpenDropDownOnFocus" Value="true" />
                        </Style>
                    </telerik:GridViewComboBoxColumn.EditorStyle>
                </telerik:GridViewComboBoxColumn>

You have to change bindings according to your scenario. Let me know how this works on your end.

Kind regards,
Nedyalko Nikolov
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.
Tags
GridView
Asked by
Gary
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or