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
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
-. 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
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.
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.
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.