Unplanned
Last Updated: 10 Jan 2019 11:46 by ADMIN
Stefan
Created on: 10 Jan 2019 00:56
Category: DateTimePicker
Type: Feature Request
2
DateTimePicker: Close Popup on Double-Click After Selecting TIme

one of my users has requested the ability to have the daytime picker pop-up closed when you double-click on the time.  could this please be added into a future release. I have written some code to do it in the meantime in ClockItem.cs:


// Stefan: start
        protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
        {
            base.OnMouseDoubleClick(e);
            var dateTimePicker = this.ParentOfType<RadDateTimePicker>();
            if (dateTimePicker != null && dateTimePicker.InputBox != null)
            {
                dateTimePicker.IsDropDownOpen = false; // close it.
            }
        }
        // Stefan: end

0 comments