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

    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);
  2. Dimitar
    Admin
    Dimitar avatar
    1408 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.

    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.
     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top