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

Open RadCombobox drop down list On focus

1 Answer 345 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vinoth
Top achievements
Rank 1
Vinoth asked on 16 Apr 2015, 12:13 PM

I have created the RadComboBox in wpf

<telerikInput:RadComboBox x:Name="cbxHaluer"
                                              IsEditable="True"
                                             IsEnabled="{Binding IsNew}"
                                             IsFilteringEnabled="True"
                                             ItemsSource="{Binding MyList}"
                                             StaysOpenOnEdit="True"
                                             IsTabStop="True"

                                            OpenDropDownOnFocus="True"
                                            SelectedItem="{Binding selectedItem, ValidatesOnDataErrors=True, Mode=TwoWay,tifyOnSourceUpdated=True,
                                            NotifyOnTargetUpdated=True, UpdateSourceTrigger=PropertyChanged}"
                                           telerikControls:TextSearch.TextPath="Name"
                                           TextSearchMode="StartsWith"
                                           ItemsPanel="{StaticResource VirtualizingStackPanel}"/>

 

I set the OpenDropDownOnFocus="True" but while focusing the RadComboBox  the drop down does not show. I have created a style for the RadComboBox

<Style.Triggers>

<Trigger Property="IsKeyboardFocusWithin" Value="True">
<Setter Property="IsDropDownOpen" Value="true" />

 </Trigger>

<Style.Triggers/>

This style open the RadCombBox  dropdown for the fist time if I again tab to the radcombobox control it is not opening the dropdown this code is working fine for normal wpf combobox. but not working for RadComboBox .

Can any one help me to solve this issue?

 

Thanks  & Regards,

Vinoth Arnold

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 20 Apr 2015, 10:27 AM
Hi Vinoth,

We noticed you have opened a ticket with the same question. So I will copy our reply here in order to be also available to the community:

Using the approach with the KeyDown event and setting the IsDropDownOpen to true in order to keep the DropDown open should not cause the observed behavior - the DropDown is open after pressing the DropDown button as expected. We created a sample project that demonstrates that - please, check it. However, if that doesn't work for you, please provide us some additional information about your scenario and the desired behavior of RadComboBox in order to provide you with another solution if possible.

Hope this helps.

Regards,
Kalin
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Vinoth
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or