need to make DatePicker control read only

4 posts, 0 answers
  1. Greg
    Greg avatar
    19 posts
    Member since:
    May 2012

    Posted 24 Jun 2013 Link to this post

    I need to make the date picker control read only. Can someone help please:
    Here is my code.

    @(Html.Kendo().DatePicker()
    .Name("DateOfPub")
    .Value("@Model.DateOfPub")
     )

    Thanks
    Vandana
     
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 25 Jun 2013 Link to this post

    Hi Vandana,

    Please use the readonly method of the widget.

    Regards,
    Alexander Valchev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Amir
    Amir avatar
    1 posts
    Member since:
    Dec 2015

    Posted 19 Jan in reply to Alexander Valchev Link to this post

    Datepicker does not work when readonly. I wanted to force user to pick dates not being able to type them, but it did not work!!!
  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 21 Jan Link to this post

    Hello Amir,

    Please take a look at this how-to demo for more details:
    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready