OnBlur event not working

2 posts, 0 answers
  1. Rajiv
    Rajiv avatar
    22 posts
    Member since:
    Sep 2008

    Posted 14 Jul 2009 Link to this post

    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.



  2. Jose
    Jose avatar
    49 posts
    Member since:
    Aug 2008

    Posted 14 Jul 2009 Link to this post

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top