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

DateTimePicker Dropdown Always Displayed

1 Answer 113 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 28 Jan 2016, 03:59 PM
Is there a way to keep the radDateTimePicker dropdown calendar locked open always or locked open until a selection is made regardless of focus?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 29 Jan 2016, 10:50 AM
Hello Mike,

Thank you for writing.

You should use the Closing event and cancel the close operation. For example:
void radDateTimePicker1_Closing(object sender, Telerik.WinControls.UI.RadPopupClosingEventArgs args)
{
    var calendar = radDateTimePicker1.DateTimePickerElement.CurrentBehavior as RadDateTimePickerCalendar;
    if (!calendar.PopupControl.Bounds.Contains(calendar.PopupControl.PointToClient(Cursor.Position)))
    {
        args.Cancel = args.CloseReason == RadPopupCloseReason.Mouse;
    }
}
 
Let me know if I can assist you further.
 
Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Mike
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or