Set Datepicker from SQL database

3 posts, 1 answers
  1. Dale
    Dale avatar
    15 posts
    Member since:
    Sep 2015

    Posted 08 Dec 2015 Link to this post

    Hi, I am using RadDatePicker as follows:


    <telerik:RadDatePicker ID="RadDATERECIEVED" runat="server" Culture="English (United States)" >
    <DateInput runat="server" DateFormat="MM/dd/yyyy" MaxLength="10">


    The picker works fine, you can pick the date, it formats with a maximum length.

    I have two questions:

    1.  How do I set the DatePicker field so that the user cannot enter a date, it has to be chosen from the calendar.

    2.  I will be loading some records with an existing date from SQL that needs to be loaded into the DatePicker.   What property do I use as I see no value property.


    Thank you for your time.  Dale,

  2. Answer
    Eyup avatar
    3320 posts

    Posted 11 Dec 2015 Link to this post

    Hello Dale,

    Straight to the points:

    1. You can use the following property to achieve this requirement:
    <DateInput ... ReadOnly="true">

    2. You can use the DbSelectedDate property similar to this live sample:

    I hope this will prove helpful.

    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 Feedback Portal and vote to affect the priority of the items
  3. Dale
    Dale avatar
    15 posts
    Member since:
    Sep 2015

    Posted 16 Dec 2015 in reply to Eyup Link to this post

    Thank you very much, it is now working.
Back to Top