This is a migrated thread and some comments may be shown as answers.

PreviewKeyDown event not firing

1 Answer 263 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Cuong
Top achievements
Rank 1
Cuong asked on 26 Aug 2014, 05:24 PM
Hi,

We are trying to get PreviewKeyDown event to fire for RadMultiColumnComboBox but it doesn't seem to.  We're able to get KeyDown event to fire though.

Below is the code to register the event.

this.radMultiColumnComboBox1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.radMultiColumnComboBox1_PreviewKeyDown);

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 29 Aug 2014, 11:04 AM
Hello Cuong,

Thank you for writing.

RadMultiColumnComboBox hosts TextBox in its editable part. In order to handle the PreviewKeyDown event, you should subscribe to the radMultiColumnComboBox1.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.HostedControl.PreviewKeyDown event.

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Dimitar
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
MultiColumn ComboBox
Asked by
Cuong
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or