Restrict user to enter date from keyboard

2 posts, 0 answers
  1. Saikiran
    Saikiran avatar
    7 posts
    Member since:
    May 2011

    Posted 26 Aug 2011 Link to this post


    Actually in RadDateTimePicker,  I want to restrict the user to enter date from keyboard .
    i.e permit user to select date using drop down not by typing.
    please give solution ASAP.. urgent!!!!

    Best regards
    Saikiran Ch
  2. Stefan
    Stefan avatar
    2891 posts

    Posted 31 Aug 2011 Link to this post

    Hello Saikiran,

    Thank you for writing.

    The easiest way to achieve this functionality is to subscribe to the KeyDown event of RadDateTimePicker and set the SupressKeyDown property from the event arguments to true:
    void DateTimePickerElement_KeyDown(object sender, KeyEventArgs e)
        e.SuppressKeyPress = true;
    I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.

    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft R3 2016 release webinar banner
Back to Top