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

RadComboBox OpenDropDownOnFocus

3 Answers 180 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 15 Mar 2012, 08:21 PM
Our team has recently upgraded to the new Silverlight 5 version as well as the most up to date version of Telerik. Regarding the RadComboBox properties, the OpenDropDownOnFocus property set to "True" does not seem to be working for RadComboBoxes that are not editable. Could these upgrades play into the property not working properly? Below is a code snippet of one of my RadComboBoxes..
<telerik:RadComboBox x:Name="Ethnicity"
                     SelectedValue="{Binding Employee}"
                                         DisplayMemberPath="Description"
                                         SelectedValuePath="Code"
                                         ClearSelectionButtonVisibility="Visible"
                                         ClearSelectionButtonContent="ClearAll"
                                         HorizontalAlignment="Left"
                                         TabIndex="9" OpenDropDownOnFocus="True">
</telerik:RadComboBox>

I have even tried the most basic RadComboBox control and I still cannot get the dropdown to open on focus. Again, this does work for RadComboBoxes that have IsEditable=True

<telerik:RadComboBox
    OpenDropDownOnFocus="True">
</telerik:RadComboBox>

Your help is greatly appreciated, thanks.

3 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 20 Mar 2012, 05:32 PM
Hi Jeff,

We are not able to reproduce the issue, could you please provide some more info. Is there something specific about your project. Is it OOB or the RadComboBox is in a Child Window? It will be best if you could send us a sample project where this can be reproduced.

All the best,
Boyan
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Shubhra
Top achievements
Rank 1
answered on 11 Jan 2013, 12:49 PM
I am also facing the same problem. after Silverlight 5
Scenario - > Open dropdown search for an item. Only when item shown as expected
Click it then click Clear. All items shown.
Now start typing , earlier matching items will automatically come in opened dropdown but now they are not coming.
If I click on the dropdown arrow...they do show...but automatically dropdown shoudl have opened
AllowAllRoles="True" 
ItemsSource
="{Binding Mode=OneWay, Path=DTO.Items}" 
SelectedItem
="{Binding Mode=TwoWay, Path=SelectedTaxYear}"                                       
DisplayMemberPath
="Name"                                      
ClearSelectionButtonContent
="Clear"                  
ClearSelectionButtonVisibility
="Visible"                  
CanAutocompleteSelectItems
="True"                  
CanKeyboardNavigationSelectItems
="False"                  
IsEditable
="True"                  
IsReadOnly
="False"                  
OpenDropDownOnFocus
="True"                  
IsFilteringEnabled
="True"                  
TextSearchMode
="StartsWith"                  
IsDropDownOpen
="False"                  
EmptyText
="Please, select an item..." >

0
Boyan
Telerik team
answered on 16 Jan 2013, 12:08 PM
Hello Shubhra,

As far as I can understand you want every time when you start typing the DropDown to open. Unfortunately this can't be achieved with the RadComboBox. The OpenDropDownOnFocus property opens the dropdown when the control gets focus and not when you start typing. It is working the first time, because you are getting the focus and the second time the dropdown doesn't open, because the focus have stayed in the control all the time. This can't be workarounded by opening the dropdown on KeyDown/Up, because the filtering will not work properly.

You can use the our RadAutoComplete control instead which has this functionality out of the box and is meant to work this way. You can check its examples here. Hope this helps.

All the best,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ComboBox
Asked by
Jeff
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Shubhra
Top achievements
Rank 1
Share this question
or