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

RadComboBox IsDropDownOpen

7 Answers 290 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
liza g
Top achievements
Rank 1
liza g asked on 26 Jan 2011, 10:21 AM
hello, I have 3 RadComboBox with Checked on the page. I want to always be open but in reality after I choose the RadComboBox closed.
I have RadControls for WPF Q1 2010.
I am attaching a sample code.
Thanks liza.

 

 

Border Style="{StaticResource BorderCombo_Details}" Grid.Column="2" Grid.Row="3" Width="200" HorizontalAlignment="Left" VerticalAlignment="Top">
<telerikInput:RadComboBox x:Name="cmbFamilyCompositionWithSen" TabIndex="43" ToolTip="{x:Static Resx:Strings.Mselects_Tolltip}" Style="{StaticResource RadComboBoxCheack_Details}"
Validation.Error="Validation_Error" IsDropDownOpen="True" MaxDropDownHeight="40" StaysOpenOnEdit="True"  FlowDirection="RightToLeft"> 
 
<telerik:RadComboBox.SelectionBoxTemplate
 
<DataTemplate
 
<TextBlock Text="{x:Null}"/> 
 
</DataTemplate
 
</telerik:RadComboBox.SelectionBoxTemplate
 
<telerik:RadComboBox.ItemTemplate
 
<DataTemplate
 
<StackPanel Orientation="Horizontal"> 
 
<CheckBox IsChecked="{Binding Path=FC_IsChecked,Mode=OneWay}" x:Name="cbxFamilyCompositionWithSen" 
 
Tag="{Binding Path=FC_ID}"  GotFocus="cbxOfCmb_GotFocus"  Checked="AddRemoveFamliyCom"  Unchecked="AddRemoveFamliyCom"/> 
 
<TextBlock Text="{Binding Path=FC_Desc}"/> 
</StackPanel>
</DataTemplate>
</telerik:RadComboBox.ItemTemplate
</telerikInput:RadComboBox
</Border>

 

 

 

 

7 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 28 Jan 2011, 10:14 AM
Hello Liza,

Unfortunately, the RadComboBox control can't be forced to stay opened. When you select an item in the content of the dropdown button, the popup closes - this is by design.

Please let us know if you have further questions about our controls.

Regards,
Konstantina
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
David
Top achievements
Rank 1
answered on 25 Jul 2012, 03:25 PM
It is possbile to force the combo to open once an item is selected and the user begin to write?. The sequence could be:
-. The user write in the combo, the box is populated
-. the user select an item from the list and push intro (the box close)
-. the user begin to write (the box is populated but continue closed)

thanks in advance
0
Konstantina
Telerik team
answered on 27 Jul 2012, 07:36 AM
Hello David,

You could use the OpenDropDownOnFocus property of the RadComboBox. It will force the drop down to open once the user focuses it and/or starts typing in it.

Greetings,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
David
Top achievements
Rank 1
answered on 27 Jul 2012, 09:21 AM
I have OpenDropDownOnFocus  =true, but if I select an item, and without losing the focus i begin writing again, the list change internally but isn't visible
0
Konstantina
Telerik team
answered on 02 Aug 2012, 06:15 AM
Hello,

Then, you could try to set the IsDropDownOpen property on the KeyDown event, so that the drop down will open when the user types in the TextBox.

Greetings,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Joseph
Top achievements
Rank 1
answered on 07 Jan 2013, 08:01 PM
I am using the KeyDown event to set IsDropDownOpen to true.  However, as soon I type a letter the previous text in the selection box is cleared out.  Is there a way to preserve the existing text?
0
Konstantina
Telerik team
answered on 10 Jan 2013, 01:26 PM
Hello Joseph,

If I have understood correctly, you want to preserve the text from the selection in the ComboBox - in order to achieve this you can use the SelectAllTextEvent to remove the selection, so that the text doesn't disappear.

Regards,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ComboBox
Asked by
liza g
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
David
Top achievements
Rank 1
Joseph
Top achievements
Rank 1
Share this question
or