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

CommandBarTextBox LostFocus Not Firing

2 Answers 40 Views
CommandBar
This is a migrated thread and some comments may be shown as answers.
Bobby Ross
Top achievements
Rank 1
Bobby Ross asked on 17 May 2011, 03:39 PM
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 Answers, 1 is accepted

Sort by
0
Bobby Ross
Top achievements
Rank 1
answered on 17 May 2011, 03:54 PM
Found the issue, and needless to say a very Duh moment.. Sorry
0
Ivan Todorov
Telerik team
answered on 20 May 2011, 02:21 PM
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.
Tags
CommandBar
Asked by
Bobby Ross
Top achievements
Rank 1
Answers by
Bobby Ross
Top achievements
Rank 1
Ivan Todorov
Telerik team
Share this question
or