RadComboBox IsDropDownOpen

8 posts, 0 answers
  1. liza g
    liza g avatar
    24 posts
    Member since:
    Dec 2009

    Posted 26 Jan 2011 Link to this post

    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>

     

     

     

     

  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 28 Jan 2011 Link to this post

    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>>
  3. UI for WPF is Visual Studio 2017 Ready
  4. David
    David avatar
    6 posts
    Member since:
    Oct 2012

    Posted 25 Jul 2012 Link to this post

    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
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 27 Jul 2012 Link to this post

    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.

  6. David
    David avatar
    6 posts
    Member since:
    Oct 2012

    Posted 27 Jul 2012 Link to this post

    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
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 02 Aug 2012 Link to this post

    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.

  8. Joseph
    Joseph avatar
    11 posts
    Member since:
    Feb 2012

    Posted 07 Jan 2013 Link to this post

    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?
  9. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 10 Jan 2013 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready