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

OnBlur event not working

1 Answer 134 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Rajiv
Top achievements
Rank 1
Rajiv asked on 14 Jul 2009, 05:20 PM

Hello,
I have two RadCombo boxes on my page, I have customText = true for both the RadCombo boxes. Also, I have implemented the code for the client side OnClientKeyPressing & OnBlur events. In OnClientKeyPressing event I check if the user has hit the "Enter" key and if so, I am shifting the focus to the second RadCombo. The focus moves to the next Radcombo box as expected but it don't trigger the OnBlur of the First Radcombo box.

What should be done so that the OnBlur event of the first combo box is called when the focus moves to the second combo box.

Thanks,
Rajiv

 

1 Answer, 1 is accepted

Sort by
0
Jose
Top achievements
Rank 2
answered on 14 Jul 2009, 08:46 PM
Hi Rajiv.

I don't think your solution is going to work. The problem is that the Blur event is fired in response to user interaction, not by code.

I would recommend to create a new function for what you had planned for the blur event and call the function from the ClientKeyPressing event.

Hope this helps.
Jose Guay
Tags
ComboBox
Asked by
Rajiv
Top achievements
Rank 1
Answers by
Jose
Top achievements
Rank 2
Share this question
or