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

Closing DropDown on enter key

5 Answers 109 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 28 Mar 2011, 11:01 AM
Hi,

I'd like the RadDatePicker DropDown close when user press enter key. How can I implement this behavior. I've tried to subscribe KeyUp event but never raises when dropdown is open.

Thanks.

5 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 31 Mar 2011, 08:01 AM
Hi DanĂ­,

There is no need to handle the enter key event. The control will automatically close the drop down after you press enter.

Kind regards,
Kaloyan
the Telerik team
0
Daní
Top achievements
Rank 1
answered on 31 Mar 2011, 12:12 PM
Hello Kaloyan,

I'm sorry but it doesn't work for me. I'm using the RadDatePicker inside a RadWindow with DateSelectionMode property set to Month, and I can navigate with arrow keys by the months but Enter key causes no action.
0
Daní
Top achievements
Rank 1
answered on 05 Apr 2011, 12:48 PM
Hello,

Any help about how can I force DatePicket.DropDown to close when enter key is pressed?

Thanks.
0
Accepted
Kaloyan
Telerik team
answered on 06 Apr 2011, 08:20 AM
Hello DanĂ­,

Sorry for the late response. I have prepared a small project that will help you resolving the problem you have. Follow the attached project.

Best wishes,
Kaloyan
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Daní
Top achievements
Rank 1
answered on 06 Apr 2011, 09:08 AM
Thanks Kaloyan, is working great!!
Tags
DatePicker
Asked by
Daní
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Daní
Top achievements
Rank 1
Share this question
or