Hi,
I am programmatically trying to make a xamComboEditor go into focus+editable mode , so that user sees the blinking cursor.Though the combobox gets focus as i can see the dotted line around the combobox, I do not see it as editable. This is not the behaviour for ordinary WPF Combobox. Note that my combobox is
<ig:XamComboEditor ItemsSource="{Binding Books}" Height="23" IsEditable="True" DisplayMemberPath="Name" OpenDropDownOnTyping="False" AutoComplete="True" IsDropDownOpen="False" AllowMultipleSelection="True" PreviewKeyDown="BooksCombo_PreviewKeyDown" CheckBoxVisibility="Visible" HorizontalAlignment="Right" VerticalAlignment="Top" Width="167" Name="BooksCombo" CustomValueEnteredAction="Allow" />
Thanks
Anindya
Hello Prashant,
Thank you for sharing this. I believe that the other community members may benefit from this as well.
Thanks again.
Use
combo.IsDropDownOpen=true;
combo.IsDropDownOpen=false;
true will focus, go in edit mode and drop down the list (as there is no implementaion to go in edit mode in v12)
false will hide the list.
the focus and edit mode will be there.
Hello Anindya Chakrabarti,
The IsInEditMode Property seem to have just appeared in 12.2 and wasn't available in the previous versions.
Let me know if I can provide any further assistance.
Hi Duane,
The property IsInEditMode is not available to the kind of XamComboEditor I am using (namespace xmlns:ig="http://schemas.infragistics.com/xaml")
The one you are talking about is in namespace xmlns:igEditors="http://infragistics.com/Editors". The problem is I need to have AllowMultipleSelection="True" in my combo. Since you provide multi selection with checkbox I am going for infragistics combo, ootherwise I could have used a WPF one, which goes in edit mode on focus.This maybe a bug in your combo implementation. Let me know if you have a workaround.
Thanks & regards
In the xamComboEditor uses the WPF ComboBox in the EditTemplate that can be found in the default styles folder. E.g.: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\WPF\DefaultStyles\Editors\EditorsGeneric.xaml.
To enter edit mode there is an IsInEditMode property that can be set to true.