Hello Alexandre,
As far as I understand your scenario, you are actually using the
SelectedIndexChanged event for a specific purpose and you would not like to execute the code in the event handler when the user changes the items using the Up/Down keys.
Indeed, unlike the standard MS combobox, the
RadComboBox fires the
SelectedIndexChanged before the
KeyDown event. So, in your case, as a workaround I would suggest using the
RadTextBoxItem.PreviewKeyDown event instead of setting the boolean flag. This event can be accessed as shown below:
this.radComboBox1.ComboBoxElement.TextBoxElement.TextBoxItem.PreviewKeyDown += new PreviewKeyDownEventHandler(TextBoxItem_PreviewKeyDown);
I hope this helps. If you have any additional questions, please don't hesitate to write us again.
Greetings,
Georgi
the Telerik team