Hi,
I have a XamComboEditor inside XamDataGrid.
When I type text in XamComboEditor "SelectionItemChanged" event gets fired if already some items are present in combo box starting with the typed letter. Example my combo box has this data {78, 999, 98 etc}. User types 7 in XamComboEditor the event gets fired, when user type 78 than also event gets fired. I want to stop that automatic selection and SelectionItemChanged event firing while typing until user select the value itself from the drop down. I only want this event firing if user manually selects some value from drop down. I dont want this SelectionItemChanged event firing if user is typing something even if he types the exact value which is already there in XamComboEditor. Actually I m performing some operations in SelectionItemChanged event so I need to stop this behaviour while typing.
Is there any other event which I can use to determine that user is not typing in XamComboEditor, eg he is done with typing and then perform some operations.
Please help with this one.
Thanks
Arpita
Hello Arpita,
Thank you for your post. I have been looking into your question and if you wish the SelectionChanged event to not fire when you are typing in the combo editor, you can disable the AutoComplete functionality, since the auto completion is the reason for the event to fire while you are typing. For the WPF’s XamComboEditor, which is in InfragisticsWPF4.Editors.v12.2 assembly, you can set the IsTextSearchEnabled property of the ComboBox, used in the editor to false, which will disable the auto complete option and the event will fire only when you select an item or type the complete item name.
For the shared XamComboEditor, which is in InfragisticsWPF4.Controls.Editors.XamComboEditor.v12.2, you can achieve the same result by setting the AutoComplte property to false. I have created a sample application for you, that shows how you can implement this approach for both editors.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I am using XamComboEditor which is in xmlns:igEditors="http://infragistics.com/Editors". I have set this IsTextSearchEnabled property to false
<igEditors:XamComboEditor.ComboBoxStyle> <Style TargetType="ComboBox"> <Setter Property="IsTextSearchEnabled" Value="False"/> </Style> </igEditors:XamComboEditor.ComboBoxStyle>
But if I type the complete item name which is already there in XamComboEditor then SelectionChanged Event gets fired.
I dont want to fire this event even if I type complete item name.
What is the resolution for this case?
Please help with this.
Thank you for your reply. I have further investigated this and since the XamComboEditor is designed to fire the SelectedItemChanged event when you type the complete name of the item, I can suggest using a bool flag to determine whether the SelectedItemChanged event is fired from typing or from selecting an item from the drop down. To do that you can use the KeyDown and PreviewKeyUp events of the XamComboEditor. I have modified the sample application that I have attached with my previous reply, in order to implement this approach.
I am just checking if you require any further assistance on the matter.