Hello Rohit Kamble,
By design the
RadTimePicker inherits
RadDateTimePicker. And
RadDateTimePicker inherits
RadDatePicker.
The
RadDatePicker has some function that finds all popups and hide them.
RadTimePicker has the same function for the
TimeViews and the inherited one for the
Calendars. So when clicking the
RadTimePicker it can find both types of view and close them. However the
DatePicker does not know about the
TimeView popups, and can not find them or close them.
Never the less,
TimeViews are available on client only when you have
RadTimePicker (Or just an
TimeView) on the page. So the logic for hiding
TimeViews on clicking
RadDatePicker's button can no be embedded into the picker, because it will not work when there is no time view on the page.
So in popup opening of the
date picker you can use the flowing code to hide all
time popups.
And note that this code will work only when there is
TimeView in your page, if not you will get an error that
"Telerik.Web.UI.RadDateTimePicker" is undefined.
All the best,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their
blog feed now.