Prevent user input

4 posts, 0 answers
  1. Matteo
    Matteo avatar
    8 posts
    Member since:
    Mar 2012

    Posted 18 Jul 2012 Link to this post

    Hi all,

    I couldn't find a solution into the forum.

    How can I prevent from writing into the control box?

    I'd like to allow the user to - only - set the date from the calendar panel.

    Thanks a lot.

    Matteo
  2. Matteo
    Matteo avatar
    8 posts
    Member since:
    Mar 2012

    Posted 30 Jul 2012 Link to this post

    bumped
  3. Kendo UI is VS 2017 Ready
  4. OnaBai
    OnaBai avatar
    55 posts
    Member since:
    Aug 2012

    Posted 05 Sep 2012 Link to this post

    Try adding readonly attribut to the input field. i.e.:
    HTML:
    <input id="cal" readonly="readonly"/>
    JavaScript initialization: 
    $("#cal").kendoDatePicker({});

  5. Matteo
    Matteo avatar
    8 posts
    Member since:
    Mar 2012

    Posted 21 Sep 2012 Link to this post

    Yes it works.
    Thanks OnaBai
Back to Top
Kendo UI is VS 2017 Ready