PreviewKeyDown event not firing

2 posts, 0 answers
  1. Cuong
    Cuong avatar
    5 posts
    Member since:
    Dec 2013

    Posted 26 Aug 2014 Link to this post


    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);
  2. Dimitar
    Dimitar avatar
    2841 posts

    Posted 29 Aug 2014 Link to this post

    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.

    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.
Back to Top