Closing DropDown on enter key

6 posts, 1 answers
  1. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 28 Mar 2011 Link to this post

    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.
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 31 Mar 2011 Link to this post

    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
  3. DevCraft banner
  4. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 31 Mar 2011 Link to this post

    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.
  5. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 05 Apr 2011 Link to this post

    Hello,

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

    Thanks.
  6. Answer
    Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 06 Apr 2011 Link to this post

    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
  7. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 06 Apr 2011 Link to this post

    Thanks Kaloyan, is working great!!
Back to Top
DevCraft banner