DateTimePicker shows min value in calender

2 posts, 0 answers
  1. Rahul
    Rahul avatar
    34 posts
    Member since:
    Dec 2010

    Posted 09 Jul 2011 Link to this post

    Hi,
    DateTimePicker shows a min value as 1/1/0001 in calender.How to default it to as todays date.
    In other case, if i am not selecting any date from datepicker, datetime property holds the mindate value.How to make this as empty string.
    I am using MVVM pattern,
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 14 Jul 2011 Link to this post

    Hi Rahul,

    While trying to write an example to demonstrate you how to achieve this we found an issue with the RadDateTimePicker. You can track the status of the issue here.

    However, I would suggest you a workaround. You could bind the DisplayDateStart property to the first date of the current month, and bind the SelectableDateStart to the current date. This way the first visible month will be the current month, and the first selectable date will be the current date. I have attached a sample example to demonstrate you how to achieve this. Hope this helps.

    Regards,
    Ivo
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top