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

Need to click comboboxcolumn twice in a dynamic grid scenario

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
HDC
Top achievements
Rank 1
HDC asked on 11 Jun 2012, 11:38 AM
Hi,
 
I have a problem with the use of the comboboxcolumn, i need to click it twice for the combo to popup, can it be done in one step?

I read following thread:
http://www.telerik.com/community/forums/silverlight/gridview/gridviewcomboboxcolumn-requires-two-clicks.aspx

But i don't quite get what dide means with setting OpenDropDownOnFocus.

I have a dynamic grid using the MyDataRow approach that i got from Telerik and i generate the combobox columns within the AutoGeneratingColumn event. So i define my GridViewComboBoxColumn within code... i can set EditTriggers, but how can i get to the combobox inside that column to set the OpenDropDownOnFocus to true?


Best Regards,

Peter

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 11 Jun 2012, 12:03 PM
Hi Peter,

Please refer to this article for further reference. Since you create your columns in code-behind, you can just create an implicit style targeting RadComboBox:

<Style TargetType="telerik:RadComboBox">
                      <Setter Property="OpenDropDownOnFocus" Value="True"/>
                  </Style>
 

All the best,
Maya
the Telerik team

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

0
HDC
Top achievements
Rank 1
answered on 11 Jun 2012, 04:17 PM
Always a life saver... thanks a lot Maya.... I could have thought of this one myself ;o((

Tags
GridView
Asked by
HDC
Top achievements
Rank 1
Answers by
Maya
Telerik team
HDC
Top achievements
Rank 1
Share this question
or