Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1585
XamComboEditor
posted

Is there a way have an editable XamComboEditor act like a readonly XamComboEditor when the user clicks on the control and it pops open the list ?

 

Parents
No Data
Reply
  • 12631
    Verified Answer
    posted

    I think what you going to have to do here is use the GotFocus event and manuall open the dropdown.  Something like this:

     <ig:XamComboEditor ItemsSource="{Binding}"
                        DisplayMemberPath="Name"
                        OpenDropDownOnTyping="True"
                        CustomValueEnteredAction="Add"
                        GotFocus="XamComboEditor_GotFocus"  />

    private void XamComboEditor_GotFocus(object sender, RoutedEventArgs e)
    {
        ((Infragistics.Controls.Editors.XamComboEditor)sender).IsDropDownOpen = true;
    }

    This will pop open the dropdown as soon as the control gets focus, even if the user has not typed anything.

    Devin 

Children
No Data