CommandBarTextBox LostFocus Not Firing

3 posts, 0 answers
  1. Bobby Ross
    Bobby Ross avatar
    18 posts
    Member since:
    Nov 2004

    Posted 17 May 2011 Link to this post

    I am having an issue and am on the very latest version of the controls where CommandBarTextBox elements placed in CommandBars do not fire the LostFocus events.

    The following used to work, but since the last upgrade does not fire.

    cbTextBox.TextBoxElement.TextBoxItem.LostFocus += new EventHandler(TextBoxItem_LostFocus);

    I have also tried the code below, but again nothing happens.

    cbTextBox.LostFocus +=new EventHandler(TextBoxItem_LostFocus);

    I could use the TextChanged event, but for filtering large datasets I do not want to filter for every keystroke, only when focus is changed.

    These are being hooked in the constructor so the events should be firing.

    Any ideas?
  2. Bobby Ross
    Bobby Ross avatar
    18 posts
    Member since:
    Nov 2004

    Posted 17 May 2011 Link to this post

    Found the issue, and needless to say a very Duh moment.. Sorry
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 20 May 2011 Link to this post

    Hi Bobby Ross, I am glad that you managed to figure this out. Should you need further help, do not hesitate to contact us.

    Kind regards,
    Ivan Todorov
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Back to Top