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
2915
XamComboEditor Auto Selection issue.
posted

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

Parents
No Data
Reply
  • 30945
    Offline posted

    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

    ComboEditorsSelectionChanged.zip
Children