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

Calendar OnBlur Event

1 Answer 57 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Levi
Top achievements
Rank 1
Levi asked on 16 Jun 2009, 08:09 PM
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.

Thanks,
Levi

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 18 Jun 2009, 11:51 AM
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,
Veli
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.
Tags
Calendar
Asked by
Levi
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or