Calendar OnBlur Event

2 posts, 0 answers
  1. Levi
    Levi avatar
    134 posts
    Member since:
    Jul 2008

    Posted 16 Jun 2009 Link to this post

    Is there a way to capture the OnBlur event for a calendar? I see a clientevents node but OnBlur is not listed. 

    I basically have a pop-up div that has two calendars and the onblur event would check to see if they clicked outside of the div. The problem is once the calendar is clicked, it receives focus and I don't have a way to detect the onblur anymore.

  2. Veli
    Veli avatar
    2002 posts

    Posted 18 Jun 2009 Link to this post

    Hi Levi,

    OnBlur events are usually fired for input elements only. Therefore, RadControls does not provide blur events for non-input control like the RadCalendar. RadDatePicker's DateInput, which is represented by the textbox, has an OnBlur event you can use.

    Other than that, you will need to use an element's click or mouseover event. A scenario you can take is set a flag on mouse over and check the flag on click to see if a mouse is over a particular element when clicked or not.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top